CustomStructSchema

constructor(type: String, componentNames: List<String>, componentSchemas: List<FateSchema<*>>, encoder: (T) -> List<Any>)

Parameters

T

The type of objects this schema serializes

type

Identifier for this object type, written to the log as the first value

componentNames

Names of the components, in the order they are written

componentSchemas

Schemas for each component, in the same order as componentNames

encoder

Converts an object into its list of components