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