GoogleMapsPlacesV1SearchNearbyRequest.fromJson constructor

GoogleMapsPlacesV1SearchNearbyRequest.fromJson(
  1. Map json_
)

Implementation

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