fromJson

fun fromJson(json: JsonObject): Sep31Refunds

Parses a SEP-31 refunds JSON object into a Sep31Refunds.

Return

The parsed refund aggregate.

Parameters

json

The refunds JSON object from a transaction response.

Throws

if amount_refunded, amount_fee, or payments is missing or the body is malformed.