fromJson static method

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

Implementation

static StorageStatisticsByFileType? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return StorageStatisticsByFileType(
    fileType: FileType.fromJson(tdMapFromJson(json['file_type'])),
    size: (json['size'] as int?) ?? 0,
    count: (json['count'] as int?) ?? 0,
  );
}