PollAnswer.fromJson constructor
Creates a PollAnswer object from JSON object
Implementation
factory PollAnswer.fromJson(Map<String, dynamic> json) {
return PollAnswer(
pollId: json['poll_id']!,
user: User.fromJson(json['user']!),
optionIds: List<int>.from(json['option_ids']! as List<dynamic>),
voterChat: json['voter_chat'] == null
? null
: Chat.fromJson(json['voter_chat']!),
);
}