toUpload static method
Implementation
static toUpload(DataValueSet dataValueSet) {
return ObjectUtil.removeNull({
"dataSet": dataValueSet.dataSet,
"completeDate": dataValueSet.completeDate,
"period": dataValueSet.period,
"orgUnit": dataValueSet.orgUnit,
"attributeOptionCombo": dataValueSet.attributeOptionCombo,
"dataValues": (dataValueSet.dataValues ?? [])
.map((dataValue) => DataValue.toUpload(dataValue))
.toList()
});
}