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