aries / net.globalid.aries.utils.base64 / Base64UrlAdapter

Base64UrlAdapter

class Base64UrlAdapter

We must use this adapter for correct JSON serialization and deserialization. This is because the Base64UrlString is a wrapper around a String, so we would get an object in JSON after serializing.

Constructors

<init>

We must use this adapter for correct JSON serialization and deserialization. This is because the Base64UrlString is a wrapper around a String, so we would get an object in JSON after serializing.

Base64UrlAdapter()

Functions

fromJson

fun fromJson(json: String): Base64UrlString

toJson

fun toJson(string: Base64UrlString): String