PollVoteEvent.fromJson constructor

PollVoteEvent.fromJson(
  1. Map<String, dynamic> res
)

Implementation

factory PollVoteEvent.fromJson(Map<String, dynamic> res) {
  return PollVoteEvent(
    pollId: res['poll_id'],
    messageId: res['message_id'],
    json: res,
  );
}