LocationFilter.fromJson constructor

LocationFilter.fromJson(
  1. Map json_
)

Implementation

LocationFilter.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? json_['address'] as core.String
            : null,
        distanceInMiles: json_.containsKey('distanceInMiles')
            ? (json_['distanceInMiles'] as core.num).toDouble()
            : null,
        latLng: json_.containsKey('latLng')
            ? LatLng.fromJson(
                json_['latLng'] as core.Map<core.String, core.dynamic>)
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        telecommutePreference: json_.containsKey('telecommutePreference')
            ? json_['telecommutePreference'] as core.String
            : null,
      );