toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'question'] = this.question;
if (this.helpText != null) {
json[r'helpText'] = this.helpText;
} else {
json[r'helpText'] = null;
}
json[r'type'] = this.type;
if (this.numStars != null) {
json[r'numStars'] = this.numStars;
} else {
json[r'numStars'] = null;
}
if (this.min != null) {
json[r'min'] = this.min;
} else {
json[r'min'] = null;
}
if (this.max != null) {
json[r'max'] = this.max;
} else {
json[r'max'] = null;
}
if (this.defaultValue != null) {
json[r'defaultValue'] = this.defaultValue;
} else {
json[r'defaultValue'] = null;
}
if (this.labelNegative != null) {
json[r'labelNegative'] = this.labelNegative;
} else {
json[r'labelNegative'] = null;
}
if (this.labelPositive != null) {
json[r'labelPositive'] = this.labelPositive;
} else {
json[r'labelPositive'] = null;
}
json[r'customOptions'] = this.customOptions;
json[r'subQuestionIds'] = this.subQuestionIds;
if (this.alwaysShowSubQuestions != null) {
json[r'alwaysShowSubQuestions'] = this.alwaysShowSubQuestions;
} else {
json[r'alwaysShowSubQuestions'] = null;
}
json[r'reportingOrder'] = this.reportingOrder;
return json;
}