GoogleMapsPlacesV1SearchNearbyRequest.fromJson constructor

GoogleMapsPlacesV1SearchNearbyRequest.fromJson(
  1. Map json_
)

Implementation

GoogleMapsPlacesV1SearchNearbyRequest.fromJson(core.Map json_)
    : this(
        excludedPrimaryTypes: json_.containsKey('excludedPrimaryTypes')
            ? (json_['excludedPrimaryTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        excludedTypes: json_.containsKey('excludedTypes')
            ? (json_['excludedTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        includedPrimaryTypes: json_.containsKey('includedPrimaryTypes')
            ? (json_['includedPrimaryTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        includedTypes: json_.containsKey('includedTypes')
            ? (json_['includedTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        locationRestriction: json_.containsKey('locationRestriction')
            ? GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction
                .fromJson(json_['locationRestriction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        maxResultCount: json_.containsKey('maxResultCount')
            ? json_['maxResultCount'] as core.int
            : null,
        rankPreference: json_.containsKey('rankPreference')
            ? json_['rankPreference'] as core.String
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
      );