InputVenueMessageContent.fromJson constructor

InputVenueMessageContent.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON map to an InputVenueMessageContent object

Implementation

factory InputVenueMessageContent.fromJson(Map<String, dynamic> json) {
  return InputVenueMessageContent(
    latitude: json['latitude'] as double,
    longitude: json['longitude'] as double,
    title: json['title'] as String,
    address: json['address'] as String,
    foursquareId: json['foursquare_id'] as String?,
    foursquareType: json['foursquare_type'] as String?,
    googlePlaceId: json['google_place_id'] as String?,
    googlePlaceType: json['google_place_type'] as String?,
  );
}