PropertyQuestion.fromJson constructor
PropertyQuestion.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PropertyQuestion.fromJson(Map<String, dynamic> json) => PropertyQuestion(
uuid: json['uuid'],
position: json['position'],
questionLocution: PropertyContent<MediaResourceAudio>.fromJson(json['question_locution']),
locutionRightAnswered: PropertyContent<MediaResourceAudio>.fromJson(json['locution_right_answered']),
locutionWrongAnswered: PropertyContent<MediaResourceAudio>.fromJson(json['locution_wrong_answered']),
questionText: PropertyContent<MediaResourceRichText>.fromJson(json['question_text']),
helpQuestionText: PropertyContent<MediaResourceRichText>.fromJson(json['help_question_text']),
rightAnsweredText: PropertyContent<MediaResourceRichText>.fromJson(json['right_answered_text']),
wrongAnsweredText: PropertyContent<MediaResourceRichText>.fromJson(json['wrong_answered_text']),
);