fromMap static method

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

Construct from Map.

Implementation

static ChatAvailableReactions? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  switch (_) {
    case 'chatAvailableReactionsAll':
      return ChatAvailableReactionsAll.fromMap(_map);
    case 'chatAvailableReactionsSome':
      return ChatAvailableReactionsSome.fromMap(_map);
    case null:
    default:
      return null;
  }
}