SpokeSummary.fromJson constructor
SpokeSummary.fromJson(
- Map json_
Implementation
SpokeSummary.fromJson(core.Map json_)
: this(
spokeStateCounts: json_.containsKey('spokeStateCounts')
? (json_['spokeStateCounts'] as core.List)
.map((value) => SpokeStateCount.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
spokeStateReasonCounts: json_.containsKey('spokeStateReasonCounts')
? (json_['spokeStateReasonCounts'] as core.List)
.map((value) => SpokeStateReasonCount.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
spokeTypeCounts: json_.containsKey('spokeTypeCounts')
? (json_['spokeTypeCounts'] as core.List)
.map((value) => SpokeTypeCount.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);