Alias indicates that this model property should be named differently in the generated json. Alias should be the outermost propschema.
createModelSchema(Todo, { title: alias('task', primitive()),})serialize(new Todo('test')) // { "task": "test" }
name of the json field to be used for this property
Optional
propSchema to (de)serialize the contents of this field
Generated using TypeDoc
Alias indicates that this model property should be named differently in the generated json. Alias should be the outermost propschema.
Example