toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (distance != null) {
json['distance'] = hcJsonValue(distance);
}
if (gridSize != null) {
json['gridSize'] = hcJsonValue(gridSize);
}
if (iterations != null) {
json['iterations'] = iterations;
}
if (kmeansThreshold != null) {
json['kmeansThreshold'] = kmeansThreshold;
}
if (type != null) {
json['type'] = hcJsonValue(type);
}
return json;
}