GoogleMapsAddressvalidationV1Geocode.fromJson constructor

GoogleMapsAddressvalidationV1Geocode.fromJson(
  1. Map json_
)

Implementation

GoogleMapsAddressvalidationV1Geocode.fromJson(core.Map json_)
    : this(
        bounds: json_.containsKey('bounds')
            ? GoogleGeoTypeViewport.fromJson(
                json_['bounds'] as core.Map<core.String, core.dynamic>)
            : null,
        featureSizeMeters: json_.containsKey('featureSizeMeters')
            ? (json_['featureSizeMeters'] as core.num).toDouble()
            : null,
        location: json_.containsKey('location')
            ? GoogleTypeLatLng.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
        placeId: json_.containsKey('placeId')
            ? json_['placeId'] as core.String
            : null,
        placeTypes: json_.containsKey('placeTypes')
            ? (json_['placeTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        plusCode: json_.containsKey('plusCode')
            ? GoogleMapsAddressvalidationV1PlusCode.fromJson(
                json_['plusCode'] as core.Map<core.String, core.dynamic>)
            : null,
      );