fromMap static method
override
Construct from Map.
Implementation
static Thumbnail? 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 format = ThumbnailFormat.fromMap(_map['format'])!;
var width = _map['width']! as int;
var height = _map['height']! as int;
var file = File.fromMap(_map['file'])!;
return Thumbnail(
extra: extra,
clientId: clientId,
format: format,
width: width,
height: height,
file: file,
);
}