Convert DAML monetary data to native OCF format with validation. This function handles untyped data from DAML contract responses and validates that amount and currency fields are present and correctly typed.
The raw monetary object (or null/undefined)
The validated native monetary object, or undefined if input is null/undefined
OcpValidationError if amount or currency are invalid
Convert DAML monetary data to native OCF format with validation. This function handles untyped data from DAML contract responses and validates that amount and currency fields are present and correctly typed.