fromMap static method

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

Construct from Map.

Implementation

static StickerFullType? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'stickerFullTypeRegular':
      return StickerFullTypeRegular.fromMap(_map);
    case 'stickerFullTypeCustomEmoji':
      return StickerFullTypeCustomEmoji.fromMap(_map);
    case 'stickerFullTypeMask':
      return StickerFullTypeMask.fromMap(_map);
    case null:
    default:
      return null;
  }
}