GoogleMapsPlacesV1SearchTextRequest.fromJson constructor
GoogleMapsPlacesV1SearchTextRequest.fromJson(
- Map json_
Implementation
GoogleMapsPlacesV1SearchTextRequest.fromJson(core.Map json_)
: this(
evOptions: json_.containsKey('evOptions')
? GoogleMapsPlacesV1SearchTextRequestEVOptions.fromJson(
json_['evOptions'] as core.Map<core.String, core.dynamic>)
: null,
includedType: json_.containsKey('includedType')
? json_['includedType'] as core.String
: null,
languageCode: json_.containsKey('languageCode')
? json_['languageCode'] as core.String
: null,
locationBias: json_.containsKey('locationBias')
? GoogleMapsPlacesV1SearchTextRequestLocationBias.fromJson(
json_['locationBias'] as core.Map<core.String, core.dynamic>)
: null,
locationRestriction: json_.containsKey('locationRestriction')
? GoogleMapsPlacesV1SearchTextRequestLocationRestriction.fromJson(
json_['locationRestriction']
as core.Map<core.String, core.dynamic>)
: null,
maxResultCount: json_.containsKey('maxResultCount')
? json_['maxResultCount'] as core.int
: null,
minRating: json_.containsKey('minRating')
? (json_['minRating'] as core.num).toDouble()
: null,
openNow: json_.containsKey('openNow')
? json_['openNow'] as core.bool
: null,
pageSize: json_.containsKey('pageSize')
? json_['pageSize'] as core.int
: null,
pageToken: json_.containsKey('pageToken')
? json_['pageToken'] as core.String
: null,
priceLevels: json_.containsKey('priceLevels')
? (json_['priceLevels'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
rankPreference: json_.containsKey('rankPreference')
? json_['rankPreference'] as core.String
: null,
regionCode: json_.containsKey('regionCode')
? json_['regionCode'] as core.String
: null,
strictTypeFiltering: json_.containsKey('strictTypeFiltering')
? json_['strictTypeFiltering'] as core.bool
: null,
textQuery: json_.containsKey('textQuery')
? json_['textQuery'] as core.String
: null,
);