toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "address_components": addressComponents == null
          ? []
          : List<dynamic>.from(addressComponents!.map((x) => x.toJson())),
      "adr_address": adrAddress,
      "business_status": businessStatus,
      "formatted_address": formattedAddress,
      "formatted_phone_number": formattedPhoneNumber,
      "geometry": geometry?.toJson(),
      "icon": icon,
      "icon_background_color": iconBackgroundColor,
      "icon_mask_base_uri": iconMaskBaseUri,
      "international_phone_number": internationalPhoneNumber,
      "name": name,
      "photos": photos == null
          ? []
          : List<dynamic>.from(photos!.map((x) => x.toJson())),
      "place_id": placeId,
      "plus_code": plusCode?.toJson(),
      "rating": rating,
      "reference": reference,
      "reviews": reviews == null
          ? []
          : List<dynamic>.from(reviews!.map((x) => x.toJson())),
      "types": types == null ? [] : List<dynamic>.from(types!.map((x) => x)),
      "url": url,
      "user_ratings_total": userRatingsTotal,
      "utc_offset": utcOffset,
      "vicinity": vicinity,
      "website": website,
      "wheelchair_accessible_entrance": wheelchairAccessibleEntrance,
    };