PollTypeQuiz.fromJson constructor

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

Parse from a json

Implementation

PollTypeQuiz.fromJson(Map<String, dynamic> json) {
  this.correctOptionId = json['correct_option_id'];
  this.explanation =
      FormattedText.fromJson(json['explanation'] ?? <String, dynamic>{});
}