toUpload static method

dynamic toUpload(
  1. EventDataValue eventDataValue
)

Implementation

static toUpload(EventDataValue eventDataValue) {
  return {
    "dataElement": eventDataValue.dataElement,
    "value": eventDataValue.value.replaceAll("\"",
        '') //Replace all helps to sanitize with double quoted strings i.e '"value"' from program rules if any
  };
}