toJson method

Map<String, dynamic> toJson()

Implementation

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