CommuteFilter.fromJson constructor

CommuteFilter.fromJson(
  1. Map json_
)

Implementation

CommuteFilter.fromJson(core.Map json_)
    : this(
        allowImpreciseAddresses: json_.containsKey('allowImpreciseAddresses')
            ? json_['allowImpreciseAddresses'] as core.bool
            : null,
        commuteMethod: json_.containsKey('commuteMethod')
            ? json_['commuteMethod'] as core.String
            : null,
        departureTime: json_.containsKey('departureTime')
            ? TimeOfDay.fromJson(
                json_['departureTime'] as core.Map<core.String, core.dynamic>)
            : null,
        roadTraffic: json_.containsKey('roadTraffic')
            ? json_['roadTraffic'] as core.String
            : null,
        startCoordinates: json_.containsKey('startCoordinates')
            ? LatLng.fromJson(json_['startCoordinates']
                as core.Map<core.String, core.dynamic>)
            : null,
        travelDuration: json_.containsKey('travelDuration')
            ? json_['travelDuration'] as core.String
            : null,
      );