fromJson

fun fromJson(json: JsonObject): Sep31ReceiveAssetInfo

Parses a receive[<code>] JSON object from the SEP-31 GET /info response.

Numeric fields tolerate either JSON numeric or string-numeric encodings. The deprecated fields map is preserved verbatim as a Map<String, Any?> with primitive leaves so legacy callers can inspect the requested per-transaction fields without depending on kotlinx.serialization.json.JsonElement types.

Return

The parsed Sep31ReceiveAssetInfo.

Parameters

json

The per-asset JSON object from the receive map.

Throws

when required fields are missing or malformed.