QuestionAnswer.fromJson constructor

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

Factory constructor for creating a QuestionAnswer instance from a JSON map.

Implementation

factory QuestionAnswer.fromJson(Map<String, dynamic> json) => QuestionAnswer(
      question: json["question"],
      solution: json["solution"],
    );