toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'id'] = id;
}
if (features.isNotEmpty) {
json[r'features'] =
features.map((v) => LocalApiClient.serialize(v)).toList();
}
return json;
}