TransitTable.fromJson constructor

TransitTable.fromJson(
  1. Map json_
)

Implementation

TransitTable.fromJson(core.Map json_)
  : this(
      postalCodeGroupNames:
          (json_['postalCodeGroupNames'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      rows:
          (json_['rows'] as core.List?)
              ?.map(
                (value) => TransitTimeRow.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      transitTimeLabels:
          (json_['transitTimeLabels'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
    );