StringSerializer


interface StringSerializer<T>


Serializes some T to and from a String.

Parameters
<T>

The custom type that can be serialized to a String.

Summary

Public functions

T?

Deserializes a T from a String.

String
serialize(instance: T)

Serializes a T to a String.

Public functions

deserialize

Added in 1.1.0-alpha06
fun deserialize(string: String): T?

Deserializes a T from a String. Returns null if deserialization failed.

serialize

Added in 1.1.0-alpha06
fun serialize(instance: T): String

Serializes a T to a String.