toUpload static method

dynamic toUpload(
  1. TrackedEntityAttributeValue attribute
)

Implementation

static toUpload(TrackedEntityAttributeValue attribute) {
  return {
    "attribute": attribute.attribute,

    //Replace all helps to sanitize with double quoted strings i.e '"value"' from program rules if any
    "value": attribute.value.replaceAll("\"", '')
  };
}