fromJson

fun fromJson(json: JsonObject): Sep08PostActionResponse

Parses a JSON response from a SEP-8 action URL into the appropriate Sep08PostActionResponse variant.

The JSON must contain a result field with one of the recognized values: "no_further_action_required" or "follow_next_url". Required fields are validated based on the result type.

Return

The parsed response as the appropriate sealed class variant

Parameters

json

The JSON object returned by the action URL

Throws

if the result field is missing or unrecognized, or if required fields for the given result are missing