• Process a contract in its raw form (e.g. date fields are Dates, and Enums are numbers) and return a pure JSON object that can be posted to REST endpoint.

    Parameters

    • data: any

      The object to serialize

    • contractMetadata: ContractMetadata

      The type info/metadata for the contract type being serialized

    • preserveOriginal: boolean

      If true, don't modify the original object. False modifies the original object (the return value points to the data argument).

    Returns any