toJson method

Map<String, dynamic> toJson()

Implementation

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