StatisticalValue.fromJson constructor

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

Parses a StatisticalValue from TDLib JSON.

Implementation

factory StatisticalValue.fromJson(Map<String, dynamic> json) =>
    StatisticalValue(
      value: _readDouble(json['value']),
      previousValue: _readDouble(json['previous_value']),
      growthRatePercentage: _readDouble(json['growth_rate_percentage']),
    );