PollUpdateEvent.fromJson constructor

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

Implementation

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