PollTypeQuiz.fromJson constructor

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

Parse from a json

Implementation

factory PollTypeQuiz.fromJson(Map<String, dynamic> json) => PollTypeQuiz(
      correctOptionId: json['correct_option_id'],
      explanation: FormattedText.fromJson(json['explanation']),
    );