Indicates that this field contains a primitive value (or Date) which should be serialized literally to json.
createModelSchema(Todo, { title: primitive(),})serialize(new Todo('test')) // { "title": "test" }
Optional
optional object that contains beforeDeserialize and/or afterDeserialize handlers
Generated using TypeDoc
Indicates that this field contains a primitive value (or Date) which should be serialized literally to json.
Example