Question.fromJson constructor

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

Implementation

factory Question.fromJson(Map<String, dynamic> json) {
  return Question(
    question: json['question'],
    options: List<String>.from(json['options']),
    answer: json['answer'],
  );
}