TranslatedSchema

constructor(baseClass: Class<U>, toBase: (T) -> U)

Creates a new TranslatedSchema with the specified configuration.

Parameters

baseClass

The class of the base type T

toBase

A function that converts objects of type T to objects of type U


constructor(baseSchema: FateSchema<U>, toBase: (T) -> U)

Parameters

baseSchema

The schema for the base type T

toBase

A function that converts objects of type T to objects of type U