CompletionStats.fromJson constructor

CompletionStats.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CompletionStats.fromJson(Map<String, dynamic> json) {
  return CompletionStats(
    successfulCount: decodeInt64(json['successfulCount']) ?? 0,
    failedCount: decodeInt64(json['failedCount']) ?? 0,
    incompleteCount: decodeInt64(json['incompleteCount']) ?? 0,
    successfulForecastPointCount:
        decodeInt64(json['successfulForecastPointCount']) ?? 0,
  );
}