schemaOf

Returns the schema for type, registered or reflected.

Throws

if type or something nested in it can't be a struct


fun <T : Any> schemaOf(type: Class<T>): StructSchema<T>(source)

Returns the schema for type. See schemaOf.


inline fun <T : Any> schemaOf(): StructSchema<T>(source)

Returns the schema for T. See schemaOf.