GoogleMapsPlacesV1Place.fromJson constructor
GoogleMapsPlacesV1Place.fromJson(
- Map json_
Implementation
GoogleMapsPlacesV1Place.fromJson(core.Map json_)
: this(
accessibilityOptions: json_.containsKey('accessibilityOptions')
? GoogleMapsPlacesV1PlaceAccessibilityOptions.fromJson(
json_['accessibilityOptions']
as core.Map<core.String, core.dynamic>)
: null,
addressComponents: json_.containsKey('addressComponents')
? (json_['addressComponents'] as core.List)
.map((value) =>
GoogleMapsPlacesV1PlaceAddressComponent.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
adrFormatAddress: json_.containsKey('adrFormatAddress')
? json_['adrFormatAddress'] as core.String
: null,
allowsDogs: json_.containsKey('allowsDogs')
? json_['allowsDogs'] as core.bool
: null,
areaSummary: json_.containsKey('areaSummary')
? GoogleMapsPlacesV1PlaceAreaSummary.fromJson(
json_['areaSummary'] as core.Map<core.String, core.dynamic>)
: null,
attributions: json_.containsKey('attributions')
? (json_['attributions'] as core.List)
.map((value) => GoogleMapsPlacesV1PlaceAttribution.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
businessStatus: json_.containsKey('businessStatus')
? json_['businessStatus'] as core.String
: null,
curbsidePickup: json_.containsKey('curbsidePickup')
? json_['curbsidePickup'] as core.bool
: null,
currentOpeningHours: json_.containsKey('currentOpeningHours')
? GoogleMapsPlacesV1PlaceOpeningHours.fromJson(
json_['currentOpeningHours']
as core.Map<core.String, core.dynamic>)
: null,
currentSecondaryOpeningHours: json_
.containsKey('currentSecondaryOpeningHours')
? (json_['currentSecondaryOpeningHours'] as core.List)
.map((value) => GoogleMapsPlacesV1PlaceOpeningHours.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
delivery: json_.containsKey('delivery')
? json_['delivery'] as core.bool
: null,
dineIn:
json_.containsKey('dineIn') ? json_['dineIn'] as core.bool : null,
displayName: json_.containsKey('displayName')
? GoogleTypeLocalizedText.fromJson(
json_['displayName'] as core.Map<core.String, core.dynamic>)
: null,
editorialSummary: json_.containsKey('editorialSummary')
? GoogleTypeLocalizedText.fromJson(json_['editorialSummary']
as core.Map<core.String, core.dynamic>)
: null,
evChargeOptions: json_.containsKey('evChargeOptions')
? GoogleMapsPlacesV1EVChargeOptions.fromJson(
json_['evChargeOptions']
as core.Map<core.String, core.dynamic>)
: null,
formattedAddress: json_.containsKey('formattedAddress')
? json_['formattedAddress'] as core.String
: null,
fuelOptions: json_.containsKey('fuelOptions')
? GoogleMapsPlacesV1FuelOptions.fromJson(
json_['fuelOptions'] as core.Map<core.String, core.dynamic>)
: null,
generativeSummary: json_.containsKey('generativeSummary')
? GoogleMapsPlacesV1PlaceGenerativeSummary.fromJson(
json_['generativeSummary']
as core.Map<core.String, core.dynamic>)
: null,
goodForChildren: json_.containsKey('goodForChildren')
? json_['goodForChildren'] as core.bool
: null,
goodForGroups: json_.containsKey('goodForGroups')
? json_['goodForGroups'] as core.bool
: null,
goodForWatchingSports: json_.containsKey('goodForWatchingSports')
? json_['goodForWatchingSports'] as core.bool
: null,
googleMapsUri: json_.containsKey('googleMapsUri')
? json_['googleMapsUri'] as core.String
: null,
iconBackgroundColor: json_.containsKey('iconBackgroundColor')
? json_['iconBackgroundColor'] as core.String
: null,
iconMaskBaseUri: json_.containsKey('iconMaskBaseUri')
? json_['iconMaskBaseUri'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
internationalPhoneNumber:
json_.containsKey('internationalPhoneNumber')
? json_['internationalPhoneNumber'] as core.String
: null,
liveMusic: json_.containsKey('liveMusic')
? json_['liveMusic'] as core.bool
: null,
location: json_.containsKey('location')
? GoogleTypeLatLng.fromJson(
json_['location'] as core.Map<core.String, core.dynamic>)
: null,
menuForChildren: json_.containsKey('menuForChildren')
? json_['menuForChildren'] as core.bool
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nationalPhoneNumber: json_.containsKey('nationalPhoneNumber')
? json_['nationalPhoneNumber'] as core.String
: null,
outdoorSeating: json_.containsKey('outdoorSeating')
? json_['outdoorSeating'] as core.bool
: null,
parkingOptions: json_.containsKey('parkingOptions')
? GoogleMapsPlacesV1PlaceParkingOptions.fromJson(
json_['parkingOptions']
as core.Map<core.String, core.dynamic>)
: null,
paymentOptions: json_.containsKey('paymentOptions')
? GoogleMapsPlacesV1PlacePaymentOptions.fromJson(
json_['paymentOptions']
as core.Map<core.String, core.dynamic>)
: null,
photos: json_.containsKey('photos')
? (json_['photos'] as core.List)
.map((value) => GoogleMapsPlacesV1Photo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
plusCode: json_.containsKey('plusCode')
? GoogleMapsPlacesV1PlacePlusCode.fromJson(
json_['plusCode'] as core.Map<core.String, core.dynamic>)
: null,
priceLevel: json_.containsKey('priceLevel')
? json_['priceLevel'] as core.String
: null,
primaryType: json_.containsKey('primaryType')
? json_['primaryType'] as core.String
: null,
primaryTypeDisplayName: json_.containsKey('primaryTypeDisplayName')
? GoogleTypeLocalizedText.fromJson(json_['primaryTypeDisplayName']
as core.Map<core.String, core.dynamic>)
: null,
rating: json_.containsKey('rating')
? (json_['rating'] as core.num).toDouble()
: null,
regularOpeningHours: json_.containsKey('regularOpeningHours')
? GoogleMapsPlacesV1PlaceOpeningHours.fromJson(
json_['regularOpeningHours']
as core.Map<core.String, core.dynamic>)
: null,
regularSecondaryOpeningHours: json_
.containsKey('regularSecondaryOpeningHours')
? (json_['regularSecondaryOpeningHours'] as core.List)
.map((value) => GoogleMapsPlacesV1PlaceOpeningHours.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
reservable: json_.containsKey('reservable')
? json_['reservable'] as core.bool
: null,
restroom: json_.containsKey('restroom')
? json_['restroom'] as core.bool
: null,
reviews: json_.containsKey('reviews')
? (json_['reviews'] as core.List)
.map((value) => GoogleMapsPlacesV1Review.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
servesBeer: json_.containsKey('servesBeer')
? json_['servesBeer'] as core.bool
: null,
servesBreakfast: json_.containsKey('servesBreakfast')
? json_['servesBreakfast'] as core.bool
: null,
servesBrunch: json_.containsKey('servesBrunch')
? json_['servesBrunch'] as core.bool
: null,
servesCocktails: json_.containsKey('servesCocktails')
? json_['servesCocktails'] as core.bool
: null,
servesCoffee: json_.containsKey('servesCoffee')
? json_['servesCoffee'] as core.bool
: null,
servesDessert: json_.containsKey('servesDessert')
? json_['servesDessert'] as core.bool
: null,
servesDinner: json_.containsKey('servesDinner')
? json_['servesDinner'] as core.bool
: null,
servesLunch: json_.containsKey('servesLunch')
? json_['servesLunch'] as core.bool
: null,
servesVegetarianFood: json_.containsKey('servesVegetarianFood')
? json_['servesVegetarianFood'] as core.bool
: null,
servesWine: json_.containsKey('servesWine')
? json_['servesWine'] as core.bool
: null,
shortFormattedAddress: json_.containsKey('shortFormattedAddress')
? json_['shortFormattedAddress'] as core.String
: null,
subDestinations: json_.containsKey('subDestinations')
? (json_['subDestinations'] as core.List)
.map((value) =>
GoogleMapsPlacesV1PlaceSubDestination.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
takeout: json_.containsKey('takeout')
? json_['takeout'] as core.bool
: null,
types: json_.containsKey('types')
? (json_['types'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
userRatingCount: json_.containsKey('userRatingCount')
? json_['userRatingCount'] as core.int
: null,
utcOffsetMinutes: json_.containsKey('utcOffsetMinutes')
? json_['utcOffsetMinutes'] as core.int
: null,
viewport: json_.containsKey('viewport')
? GoogleGeoTypeViewport.fromJson(
json_['viewport'] as core.Map<core.String, core.dynamic>)
: null,
websiteUri: json_.containsKey('websiteUri')
? json_['websiteUri'] as core.String
: null,
);