toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['lastUpdated'] = this.lastUpdated;
  data['id'] = this.id;
  data['created'] = this.created;
  data['name'] = this.name;
  data['shortName'] = this.shortName;
  data['code'] = this.code;
  data['displayName'] = this.displayName;
  data['description'] = this.description;
  data['dirty'] = this.dirty;
  data['captureCoordinates'] = this.captureCoordinates;
  data['completeEventsExpiryDays'] = this.completeEventsExpiryDays;
  data['displayFrontPageList'] = this.displayFrontPageList;
  data['displayIncidentDate'] = this.displayIncidentDate;
  data['enrollmentDateLabel'] = this.enrollmentDateLabel;
  data['featureType'] = this.featureType;
  data['ignoreOverdueEvents'] = this.ignoreOverdueEvents;
  data['incidentDateLabel'] = this.incidentDateLabel;
  data['onlyEnrollOnce'] = this.onlyEnrollOnce;
  data['organisationUnits'] = this.organisationUnits;
  data['programStages'] = this.programStages;
  data['programSections'] = this.programSections;
  data['programTrackedEntityAttributes'] =
      this.programTrackedEntityAttributes;
  data['programRuleVariables'] = this.programRuleVariables;
  data['programType'] = this.programType;
  data['selectEnrollmentDatesInFuture'] = this.selectEnrollmentDatesInFuture;
  data['selectIncidentDatesInFuture'] = this.selectIncidentDatesInFuture;
  data['trackedEntity'] = this.trackedEntity;
  data['trackedEntityType'] = this.trackedEntityType;
  data['useFirstStageDuringRegistration'] =
      this.useFirstStageDuringRegistration;
  data['withoutRegistration'] = this.withoutRegistration;
  return data;
}