toJsonElement

abstract fun toJsonElement(): JsonObject(source)

Serialises this config into a JsonObject. Can be loaded using Reader.fromJsonObject afterwards.