fromMap static method
override
Construct from Map.
Implementation
static StickerFormat? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'stickerFormatWebp':
return StickerFormatWebp.fromMap(_map);
case 'stickerFormatWebm':
return StickerFormatWebm.fromMap(_map);
case 'stickerFormatTgs':
return StickerFormatTgs.fromMap(_map);
case null:
default:
return null;
}
}