fromJson

fun fromJson(json: JsonObject): Sep31InfoResponse

Parses the GET /info JSON response into a Sep31InfoResponse.

The receive object is optional at the top level. A response with no receive key, or with receive set to an empty object, is parsed as a Sep31InfoResponse with an empty receiveAssets map (this is rare in production but spec-conformant).

Return

The parsed info response.

Parameters

json

The JSON object returned by the Receiving Anchor.

Throws

when a receive[<code>] entry is malformed.