fromJson static method

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

Creates a object from a json

Implementation

static Venue fromJson(Map<String, dynamic> json) {
  return Venue(
    location: Location.fromJson(json['location']!),
    title: json['title']!,
    address: json['address']!,
    foursquareId: json['foursquare_id'],
    foursquareType: json['foursquare_type'],
    googlePlaceId: json['google_place_id'],
    googlePlaceType: json['google_place_type'],
  );
}