Convert DAML entity data to native OCF format based on entity type.
This is the inverse of convertToDaml() - it transforms DAML contract data back into native OCF format for reads.
convertToDaml()
The OCF entity type
The DAML contract data (from createArgument)
The native OCF data object
OcpParseError if the entity type is not supported
const damlData = contract.createArgument.acceptance_data;const native = convertToOcf('stockAcceptance', damlData); Copy
const damlData = contract.createArgument.acceptance_data;const native = convertToOcf('stockAcceptance', damlData);
Convert DAML entity data to native OCF format based on entity type.
This is the inverse of
convertToDaml()- it transforms DAML contract data back into native OCF format for reads.