UpdatePollAnswer.fromJson constructor

UpdatePollAnswer.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

UpdatePollAnswer.fromJson(Map<String, dynamic> json) {
  this.pollId = int.tryParse(json['poll_id'] ?? "");
  this.userId = json['user_id'];
  this.optionIds =
      List<int>.from((json['option_ids'] ?? []).map((item) => item).toList());
  this.extra = json['@extra'];
}