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