parse

fun parse(payload: String): Order

Takes an existing Order in the form of a json string and parses it into an Order object. Validates object structure and performs an integrity check using the message signature.

Return

The json string parsed into an Order

Parameters

payload

The Order as a json string.

Throws

if the payload is not an Order