← back to roto on ba3a.dev

Package-level declarations

Types

Link copied to clipboard
abstract class JsonCodec<T>(serializer: KSerializer<T>, val fileName: String, error: (message: String, cause: Throwable) -> IOException)

Reads and writes one JSON file format; each format's codec is an object extending this.

Link copied to clipboard
abstract class SourceStringSerializer<T : Any>(name: String, parse: (String) -> T, source: (T) -> String) : KSerializer<T>

A value written in JSON as its source string, parsed (and so validated) on the way in.