parse

fun parse(payload: String): Quote

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

Return

The json string parsed into a Quote

Parameters

payload

The Quote as a json string.

Throws

if the payload is not a Quote