StorageStatistics.fromJson constructor

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

Parses a StorageStatistics from TDLib JSON.

Implementation

factory StorageStatistics.fromJson(Map<String, dynamic> json) =>
    StorageStatistics(
      size: _readInt(json['size']),
      count: _readInt(json['count']),
      byChat: _readList<StorageStatisticsByChat>(json['by_chat'],
          (e) => _readObject(e, StorageStatisticsByChat.fromJson)),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );