VenueLatLng.fromJson constructor

VenueLatLng.fromJson(
  1. Map<String, dynamic> data
)

Implementation

VenueLatLng.fromJson(Map<String, dynamic> data) {
  venue = data['venue'] ?? '';
  displayName = data['displayName'];
  latitude = data['latitude'] != 'null' && data['latitude'] != null
      ? double.parse(data['latitude'])
      : 0;
  longitude = data['longitude'] != 'null' && data['longitude'] != null
      ? double.parse(data['longitude'])
      : 0;
}