StorageStatistics.fromJson constructor

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

Parse from a json

Implementation

factory StorageStatistics.fromJson(Map<String, dynamic> json) =>
    StorageStatistics(
      size: json['size'],
      count: json['count'],
      byChat: List<StorageStatisticsByChat>.from((json['by_chat'] ?? [])
          .map((item) => StorageStatisticsByChat.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );