SummarizedCounter.fromJson constructor

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

Implementation

factory SummarizedCounter.fromJson(Map<String, dynamic> json) {
  return SummarizedCounter(
    average: json['Average'] as double?,
    max: json['Max'] as double?,
    n: json['N'] as int?,
    name: json['Name'] as String?,
    sum: json['Sum'] as double?,
    unit: json['Unit'] as String?,
  );
}