fromJson

suspend fun fromJson(json: JsonObject): StatusList

Parses JSON as status list.

This method is mostly useful for testing, as JSON is typically wrapped in JWT.

Return

parsed StatusList

Parameters

json

JSON status list representation

Throws

when json does not represent status list