ChatAvailableReactionsSome.fromJson constructor

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

Parses a ChatAvailableReactionsSome from TDLib JSON.

Implementation

factory ChatAvailableReactionsSome.fromJson(Map<String, dynamic> json) =>
    ChatAvailableReactionsSome(
      reactions: _readList<ReactionType>(
        json['reactions'],
        (e) => _readObject(e, ReactionType.fromJson),
      ),
      maxReactionCount: _readInt(json['max_reaction_count']),
    );