toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['name'] = this.name;
  data['program'] = this.program;
  data['displayName'] = this.displayName;
  data['formName'] = this.formName;
  data['sortOrder'] = this.sortOrder;
  data['displayInList'] = this.displayInList;
  data['valueType'] = this.valueType;
  data['attribute'] = this.attribute;
  data['renderOptionsAsRadio'] = this.renderOptionsAsRadio;
  data['mandatory'] = this.mandatory;
  data['aggregationType'] = this.aggregationType;
  data['generated'] = this.generated;
  data['code'] = this.code;
  data['isUnique'] = this.isUnique;
  data['optionSetValue'] = this.optionSetValue;
  data['optionSetName'] = this.optionSetName;
  data['options'] = this.options;
  data['optionSetValueCount'] = this.optionSetValueCount;
  data['translations'] = jsonEncode(this.translations);
  return data;
}