Location.fromJson constructor

Location.fromJson(
  1. Map json_
)

Implementation

Location.fromJson(core.Map json_)
    : this(
        latLng: json_.containsKey('latLng')
            ? LatLng.fromJson(
                json_['latLng'] as core.Map<core.String, core.dynamic>)
            : null,
        locationType: json_.containsKey('locationType')
            ? json_['locationType'] as core.String
            : null,
        postalAddress: json_.containsKey('postalAddress')
            ? PostalAddress.fromJson(
                json_['postalAddress'] as core.Map<core.String, core.dynamic>)
            : null,
        radiusMiles: json_.containsKey('radiusMiles')
            ? (json_['radiusMiles'] as core.num).toDouble()
            : null,
      );