fromMap static method
override
Construct from Map.
Implementation
static ThumbnailFormat? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'thumbnailFormatWebp':
return ThumbnailFormatWebp.fromMap(_map);
case 'thumbnailFormatMpeg4':
return ThumbnailFormatMpeg4.fromMap(_map);
case 'thumbnailFormatGif':
return ThumbnailFormatGif.fromMap(_map);
case 'thumbnailFormatPng':
return ThumbnailFormatPng.fromMap(_map);
case 'thumbnailFormatJpeg':
return ThumbnailFormatJpeg.fromMap(_map);
case 'thumbnailFormatWebm':
return ThumbnailFormatWebm.fromMap(_map);
case 'thumbnailFormatTgs':
return ThumbnailFormatTgs.fromMap(_map);
case null:
default:
return null;
}
}