fromJson

suspend fun fromJson(json: JsonObject, expirationTime: Instant): 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

expirationTime

time when this status list expires

Throws

when json does not represent status list