toJson

fun toJson(): Map<String, Any?>

Converts this authentication method to a JSON-compatible map.

The returned map uses the SEP-30 specification field names and is suitable for serialization when sending requests to a recovery server.

Return

A map with "type" and "value" entries