StorageStatisticsByChat.fromJson constructor

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

Parse from a json

Implementation

factory StorageStatisticsByChat.fromJson(Map<String, dynamic> json) => StorageStatisticsByChat(
  chatId: json['chat_id'] ?? 0,
  size: json['size'],
  count: json['count'],
  byFileType: List<StorageStatisticsByFileType>.from((json['by_file_type'] ?? []).map((item) => StorageStatisticsByFileType.fromJson(item)).toList()),
);