fromMap static method

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

Construct from Map.

Implementation

static ChatPhotoStickerType? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'chatPhotoStickerTypeCustomEmoji':
      return ChatPhotoStickerTypeCustomEmoji.fromMap(_map);
    case 'chatPhotoStickerTypeRegularOrMask':
      return ChatPhotoStickerTypeRegularOrMask.fromMap(_map);
    case null:
    default:
      return null;
  }
}