PollOption.fromJson constructor

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

Parse from a json

Implementation

factory PollOption.fromJson(Map<String, dynamic> json) => PollOption(
  text: json['text'],
  voterCount: json['voter_count'],
  votePercentage: json['vote_percentage'],
  isChosen: json['is_chosen'],
  isBeingChosen: json['is_being_chosen'],
);