$LatLng.fromJson constructor Null safety

$LatLng.fromJson(
  1. Map _json
)

Implementation

$LatLng.fromJson(core.Map _json)
    : this(
        latitude: _json.containsKey('latitude')
            ? (_json['latitude'] as core.num).toDouble()
            : null,
        longitude: _json.containsKey('longitude')
            ? (_json['longitude'] as core.num).toDouble()
            : null,
      );