toUpload static method

dynamic toUpload(
  1. DataValueSet dataValueSet
)

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()
  });
}