aries / net.globalid.aries.utils.base64 / Base64NormalAdapter

Base64NormalAdapter

class Base64NormalAdapter

We must use this adapter for correct JSON serialization and deserialization. This is because the Base64NormalString 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 Base64NormalString is a wrapper around a String, so we would get an object in JSON after serializing.

Base64NormalAdapter()

Functions

fromJson

fun fromJson(json: String): Base64NormalString

toJson

fun toJson(string: Base64NormalString): String