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