core.Map<core.String, core.dynamic> toJson() { final nearestNeighbors = this.nearestNeighbors; return {'nearestNeighbors': ?nearestNeighbors}; }