class QuestionnaireSubmitModel { int? id; List? appQuestionnaireAnswerSubmits; QuestionnaireSubmitModel({this.id, this.appQuestionnaireAnswerSubmits}); QuestionnaireSubmitModel.fromJson(Map json) { id = json['id']; if (json['appQuestionnaireAnswerSubmits'] != null) { appQuestionnaireAnswerSubmits = []; json['appQuestionnaireAnswerSubmits'].forEach((v) { appQuestionnaireAnswerSubmits! .add(new AppQuestionnaireAnswerSubmits.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['id'] = this.id; if (this.appQuestionnaireAnswerSubmits != null) { data['appQuestionnaireAnswerSubmits'] = this.appQuestionnaireAnswerSubmits!.map((v) => v.toJson()).toList(); } return data; } } class AppQuestionnaireAnswerSubmits { int? topicId; List? choiceAnswer; String? shortAnswer; AppQuestionnaireAnswerSubmits( {this.topicId, this.choiceAnswer, this.shortAnswer}); AppQuestionnaireAnswerSubmits.fromJson(Map json) { topicId = json['topicId']; choiceAnswer = json['choiceAnswer'].cast(); shortAnswer = json['shortAnswer']; } Map toJson() { final Map data = new Map(); data['topicId'] = this.topicId; data['choiceAnswer'] = this.choiceAnswer; data['shortAnswer'] = this.shortAnswer; return data; } }