ChatAvailableReactions.fromJson constructor

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

Parses whichever ChatAvailableReactions subtype the JSON describes.

Implementation

factory ChatAvailableReactions.fromJson(Map<String, dynamic> json) {
  final object = tdObjectFactories[json['@type']]?.call(json);
  return object is ChatAvailableReactions
      ? object
      : UndecodedChatAvailableReactions(json);
}