CompletionStats.fromJson constructor
CompletionStats.fromJson(
- Object? j
Implementation
factory CompletionStats.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CompletionStats(
successfulCount: switch (json['successfulCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
failedCount: switch (json['failedCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
incompleteCount: switch (json['incompleteCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
successfulForecastPointCount:
switch (json['successfulForecastPointCount']) {
null => 0,
Object $1 => decodeInt64($1),
},
);
}