JsonModel

interface JsonModel

Properties

Link copied to clipboard
abstract val json: JsonObject
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun JsonModel.char(key: String? = null, default: JsonObjectDefaultSelector<Char>): JsonDelegateProperty<Char>
fun JsonModel.char(key: String? = null, default: Char): JsonDelegateProperty<Char>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any, E : Enum<E>, JsonEnum<T>> JsonModel.enum(key: String? = null, noinline default: JsonObjectDefaultSelector<E> = ::jsonObjectDefaultSelector): JsonObjectProperty<E>
Link copied to clipboard
inline fun <T : Any, E : Enum<E>, JsonEnum<T>> JsonModel.enumList(key: String? = null, noinline default: JsonArrayDefaultSelector<E> = ::jsonArrayDefaultSelector): JsonArrayProperty<E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun JsonModel.floatValue(key: String, default: Float): Float
fun JsonModel.floatValue(key: String, default: () -> Float): Float
Link copied to clipboard
Link copied to clipboard
inline operator fun <T> JsonModel.getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
fun JsonModel.int(key: String? = null, default: JsonObjectDefaultSelector<Int>): JsonDelegateProperty<Int>
fun JsonModel.int(key: String? = null, default: Int): JsonDelegateProperty<Int>
Link copied to clipboard
Link copied to clipboard
fun JsonModel.intValue(key: String, default: Int): Int
fun JsonModel.intValue(key: String, default: () -> Int): Int
Link copied to clipboard
Link copied to clipboard
fun JsonModel.jsonArray(key: String? = null, default: JsonObjectDefaultSelector<JsonArray>): JsonDelegateProperty<JsonArray>
Link copied to clipboard
Link copied to clipboard
fun <T : Any> JsonModel.jsonArrayProperty(key: String? = null, default: JsonArrayDefaultSelector<T> = ::jsonArrayDefaultSelector, converter: JsonElementConverter<T>): JsonArrayProperty<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> JsonModel.jsonObjectProperty(key: String? = null, default: JsonObjectDefaultSelector<T> = ::jsonObjectDefaultSelector, converter: JsonElementConverter<T>): JsonObjectProperty<T>
Link copied to clipboard
Link copied to clipboard
fun <T : Any> JsonModel.lambda(key: String? = null, default: JsonObjectDefaultSelector<T>, converter: JsonElementConverter<T>): JsonObjectProperty<T>
fun <T : Any> JsonModel.lambda(key: String? = null, default: T, converter: JsonElementConverter<T>): JsonObjectProperty<T>
fun <T : Any> JsonModel.lambda(key: String? = null, converter: JsonElementConverter<T>): JsonObjectProperty<T>
Link copied to clipboard
fun <T : Any> JsonModel.lambdaList(key: String? = null, default: JsonArrayDefaultSelector<T>, converter: JsonElementConverter<T>): JsonArrayProperty<T>
fun <T : Any> JsonModel.lambdaList(key: String? = null, default: List<T>, converter: JsonElementConverter<T>): JsonArrayProperty<T>
fun <T : Any> JsonModel.lambdaList(key: String? = null, converter: JsonElementConverter<T>): JsonArrayProperty<T>
Link copied to clipboard
fun JsonModel.long(key: String? = null, default: JsonObjectDefaultSelector<Long>): JsonDelegateProperty<Long>
fun JsonModel.long(key: String? = null, default: Long): JsonDelegateProperty<Long>
Link copied to clipboard
Link copied to clipboard
fun JsonModel.longValue(key: String, default: Long): Long
fun JsonModel.longValue(key: String, default: () -> Long): Long
Link copied to clipboard
Link copied to clipboard
fun <T : JsonModel> JsonModel.model(key: String? = null, block: (JsonObject) -> T): JsonObjectProperty<T>
Link copied to clipboard
fun <T : JsonModel> JsonModel.modelList(key: String? = null, block: (JsonObject) -> T): JsonArrayProperty<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : JsonModel> JsonModel.modelValue(key: String): T
Link copied to clipboard
inline fun <T : JsonModel> JsonModel.modelValueOrNull(key: String): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any, E : Enum<E>, JsonEnum<T>> JsonModel?.nullableEnum(key: String? = null, noinline default: JsonObjectDefaultSelector<E?> = ::jsonObjectDefaultSelectorWithNull): JsonObjectProperty<E?>
Link copied to clipboard
inline fun <T : Any, E : Enum<E>, JsonEnum<T>> JsonModel?.nullableEnumList(key: String? = null, noinline default: JsonArrayDefaultSelector<E?> = ::jsonArrayDefaultSelector): JsonArrayProperty<E?>
Link copied to clipboard
Link copied to clipboard
fun JsonModel?.nullableInt(key: String? = null, default: JsonObjectDefaultSelector<Int?>): JsonDelegateProperty<Int?>
fun JsonModel?.nullableInt(key: String? = null, default: Int?): JsonDelegateProperty<Int?>
Link copied to clipboard
Link copied to clipboard
fun <T> JsonModel?.nullableJsonArrayProperty(key: String? = null, default: JsonArrayDefaultSelector<T?> = ::jsonArrayDefaultSelector, converter: JsonElementConverter<T?>): JsonArrayProperty<T?>
Link copied to clipboard
fun <T> JsonModel?.nullableJsonObjectProperty(key: String? = null, default: JsonObjectDefaultSelector<T?> = ::jsonObjectDefaultSelectorWithNull, converter: JsonElementConverter<T?>): JsonObjectProperty<T?>
Link copied to clipboard
fun <T> JsonModel?.nullableLambda(key: String? = null, default: JsonObjectDefaultSelector<T?>, converter: JsonElementConverter<T?>): JsonObjectProperty<T?>
fun <T> JsonModel?.nullableLambda(key: String? = null, default: T?, converter: JsonElementConverter<T?>): JsonObjectProperty<T?>
fun <T> JsonModel?.nullableLambda(key: String? = null, converter: JsonElementConverter<T?>): JsonObjectProperty<T?>
Link copied to clipboard
fun <T> JsonModel?.nullableLambdaList(key: String? = null, default: JsonArrayDefaultSelector<T?>, converter: JsonElementConverter<T?>): JsonArrayProperty<T?>
fun <T> JsonModel?.nullableLambdaList(key: String? = null, default: List<T?>, converter: JsonElementConverter<T?>): JsonArrayProperty<T?>
fun <T> JsonModel?.nullableLambdaList(key: String? = null, converter: JsonElementConverter<T?>): JsonArrayProperty<T?>
Link copied to clipboard
Link copied to clipboard
fun <T : JsonModel> JsonModel?.nullableModel(key: String? = null, block: (JsonObject) -> T): JsonObjectProperty<T?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard