fromMap static method

StorageStatisticsFast? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static StorageStatisticsFast? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var files_size = _map['files_size']! as int;
  var file_count = _map['file_count']! as int;
  var database_size = _map['database_size']! as int;
  var language_pack_database_size =
      _map['language_pack_database_size']! as int;
  var log_size = _map['log_size']! as int;
  return StorageStatisticsFast(
    extra: extra,
    clientId: clientId,
    files_size: files_size,
    file_count: file_count,
    database_size: database_size,
    language_pack_database_size: language_pack_database_size,
    log_size: log_size,
  );
}