parse

fun parse(payload: String): Offering

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

Return

The json string parsed into an Offering

Parameters

payload

The Offering as a json string.

Throws

if the payload is not an Offering