fromMap static method

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

Construct from Map.

Implementation

static TMeUrlType? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'tMeUrlTypeStickerSet':
      return TMeUrlTypeStickerSet.fromMap(_map);
    case 'tMeUrlTypeChatInvite':
      return TMeUrlTypeChatInvite.fromMap(_map);
    case 'tMeUrlTypeUser':
      return TMeUrlTypeUser.fromMap(_map);
    case 'tMeUrlTypeSupergroup':
      return TMeUrlTypeSupergroup.fromMap(_map);
    case null:
    default:
      return null;
  }
}