CommuteInfo.fromJson constructor

CommuteInfo.fromJson(
  1. Map json_
)

Implementation

CommuteInfo.fromJson(core.Map json_)
    : this(
        jobLocation: json_.containsKey('jobLocation')
            ? Location.fromJson(
                json_['jobLocation'] as core.Map<core.String, core.dynamic>)
            : null,
        travelDuration: json_.containsKey('travelDuration')
            ? json_['travelDuration'] as core.String
            : null,
      );