|
|
|
@ -1,30 +1,30 @@
|
|
|
|
|
// class QuestionnaireSubmitModel {
|
|
|
|
|
// int id;
|
|
|
|
|
// List<AppQuestionnaireAnswerSubmits> appQuestionnaireAnswerSubmits;
|
|
|
|
|
class QuestionnaireSubmitModel {
|
|
|
|
|
int id;
|
|
|
|
|
List<AppQuestionnaireAnswerSubmits> appQuestionnaireAnswerSubmits;
|
|
|
|
|
|
|
|
|
|
// QuestionnaireSubmitModel({this.id, this.appQuestionnaireAnswerSubmits});
|
|
|
|
|
QuestionnaireSubmitModel({this.id, this.appQuestionnaireAnswerSubmits});
|
|
|
|
|
|
|
|
|
|
// QuestionnaireSubmitModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
// id = json['id'];
|
|
|
|
|
// if (json['appQuestionnaireAnswerSubmits'] != null) {
|
|
|
|
|
// appQuestionnaireAnswerSubmits = new List<AppQuestionnaireAnswerSubmits>();
|
|
|
|
|
// json['appQuestionnaireAnswerSubmits'].forEach((v) {
|
|
|
|
|
// appQuestionnaireAnswerSubmits
|
|
|
|
|
// .add(new AppQuestionnaireAnswerSubmits.fromJson(v));
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
QuestionnaireSubmitModel.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
id = json['id'];
|
|
|
|
|
if (json['appQuestionnaireAnswerSubmits'] != null) {
|
|
|
|
|
appQuestionnaireAnswerSubmits = new List<AppQuestionnaireAnswerSubmits>();
|
|
|
|
|
json['appQuestionnaireAnswerSubmits'].forEach((v) {
|
|
|
|
|
appQuestionnaireAnswerSubmits
|
|
|
|
|
.add(new AppQuestionnaireAnswerSubmits.fromJson(v));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Map<String, dynamic> toJson() {
|
|
|
|
|
// final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
// data['id'] = this.id;
|
|
|
|
|
// if (this.appQuestionnaireAnswerSubmits != null) {
|
|
|
|
|
// data['appQuestionnaireAnswerSubmits'] =
|
|
|
|
|
// this.appQuestionnaireAnswerSubmits.map((v) => v.toJson()).toList();
|
|
|
|
|
// }
|
|
|
|
|
// return data;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
|
|
|
data['id'] = this.id;
|
|
|
|
|
if (this.appQuestionnaireAnswerSubmits != null) {
|
|
|
|
|
data['appQuestionnaireAnswerSubmits'] =
|
|
|
|
|
this.appQuestionnaireAnswerSubmits.map((v) => v.toJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class AppQuestionnaireAnswerSubmits {
|
|
|
|
|
int topicId;
|
|
|
|
|