UpdatePollAnswer.fromJson constructor
Parses a UpdatePollAnswer from TDLib JSON.
Implementation
factory UpdatePollAnswer.fromJson(Map<String, dynamic> json) =>
UpdatePollAnswer(
pollId: _readInt(json['poll_id']),
voterId: _readObject(json['voter_id'], MessageSender.fromJson),
optionIds: _readList<int>(json['option_ids'], _readInt),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);