toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"type": featureTypeValues.reverse[type],
"place_type": List<dynamic>.from(
placeType?.map((x) => placeTypeValues.reverse[x])??[]),
// "relevance": relevance,
"address": addressNumber,
"properties": properties?.toJson(),
"text": text,
"place_name": placeName,
"bbox": List<dynamic>.from(bbox?.map((x) => x) ?? []),
"center": List<dynamic>.from(center?.map((x) => x) ?? []),
"geometry": geometry?.toJson(),
"context": context == null
? null
: List<dynamic>.from(context?.map((x) => x.toJson()) ?? []),
"matching_text": matchingText == null ? null : matchingText,
"matching_place_name":
matchingPlaceName == null ? null : matchingPlaceName,
};