fromMap static method

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

Construct from Map.

Implementation

static StorageStatisticsByFileType? 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 file_type = FileType.fromMap(_map['file_type'])!;
  var size = _map['size']! as int;
  var count = _map['count']! as int;
  return StorageStatisticsByFileType(
    extra: extra,
    clientId: clientId,
    file_type: file_type,
    size: size,
    count: count,
  );
}