toJson method
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['completeDate'] = this.completeDate;
data['name'] = this.name;
data['dirty'] = this.dirty;
data['synced'] = this.synced;
data['syncFailed'] = this.syncFailed;
data['lastSyncSummary'] = this.lastSyncSummary != null
? jsonEncode(
(this.lastSyncSummary as DataValueSetImportSummary).responseSummary)
: null;
data['lastSyncDate'] = this.lastSyncDate;
data['period'] = this.period;
data['orgUnit'] = this.orgUnit;
data['dataSet'] = this.dataSet;
data['dataValues'] = this.dataValues;
return data;
}