toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.question != null) {
    json[r'question'] = this.question;
  } else {
    json[r'question'] = null;
  }
  if (this.helpText != null) {
    json[r'helpText'] = this.helpText;
  } else {
    json[r'helpText'] = null;
  }
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  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;
  }
  if (this.reportingOrder != null) {
    json[r'reportingOrder'] = this.reportingOrder;
  } else {
    json[r'reportingOrder'] = null;
  }
  return json;
}