fromJson static method

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

Creates a object from a json

Implementation

static PollAnswer fromJson(Map<String, dynamic> json) {
  return PollAnswer(
    pollId: json['poll_id']!,
    user: json['user']!,
    optionIds: json['option_ids']!,
  );
}