List indicates that this property contains a list of things. Accepts a sub model schema to serialize the contents
class SubTask {}class Task {}class Todo {}createModelSchema(SubTask, { title: true,})createModelSchema(Todo, { title: true, subTask: list(object(SubTask)),})const todo = deserialize(Todo, { title: 'Task', subTask: [ { title: 'Sub task 1', }, ],})
to be used to (de)serialize the contents of the array
Optional
optional object that contains beforeDeserialize and/or afterDeserialize handlers
Generated using TypeDoc
List indicates that this property contains a list of things. Accepts a sub model schema to serialize the contents
Example