fromJson static method

ChatAvailableReactions? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static ChatAvailableReactions? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  switch (json['@type']) {
    case ChatAvailableReactionsAll.constructor:
      return ChatAvailableReactionsAll.fromJson(json);

    case ChatAvailableReactionsSome.constructor:
      return ChatAvailableReactionsSome.fromJson(json);

    default:
      return null;
  }
}