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['description'] = this.description;
  data['content'] = this.content;
  data['displayContent'] = this.displayContent;
  data['programRule'] = this.programRule;
  data['programRuleActionType'] = this.programRuleActionType;
  data['evaluationTime'] = this.evaluationTime;
  data['dataElement'] = this.dataElement;
  data['option'] = this.option;
  data['optionGroup'] = this.optionGroup;
  data['section'] = this.section;
  data['trackedEntityAttribute'] = this.trackedEntityAttribute;
  data['dirty'] = this.dirty;
  data['data'] = this.data;
  return data;
}