ChatRevenueStatistics.fromJson constructor
Parses a ChatRevenueStatistics from TDLib JSON.
Implementation
factory ChatRevenueStatistics.fromJson(Map<String, dynamic> json) =>
ChatRevenueStatistics(
revenueByHourGraph: _readObject(
json['revenue_by_hour_graph'],
StatisticalGraph.fromJson,
),
revenueGraph: _readObject(
json['revenue_graph'],
StatisticalGraph.fromJson,
),
revenueAmount: _readObject(
json['revenue_amount'],
ChatRevenueAmount.fromJson,
),
usdRate: _readDouble(json['usd_rate']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);