fromJson static method
Inherited by: ChatAvailableReactionsAll ChatAvailableReactionsSome
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;
}
}