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