ChatAvailableReactions.fromJson constructor
a ChatAvailableReactions return type can be :
Implementation
factory ChatAvailableReactions.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case ChatAvailableReactionsAll.CONSTRUCTOR:
return ChatAvailableReactionsAll.fromJson(json);
case ChatAvailableReactionsSome.CONSTRUCTOR:
return ChatAvailableReactionsSome.fromJson(json);
default:
return const ChatAvailableReactions();
}
}