the name of the property to merge.
the model to merge from.
Merges the values of the given model into the receiver, using Model.mergeValue for each key in Serializable.JSONKeyPaths.
the model to merge from.
Serializes a model into an object.
Note: This does not throw the error if it occurs during serialization. Check Model.toObject if you need that.
Serializes a model into an object.
Validates the model.
The default implementation simply invokes validate<Key>
for all keys in Serializable.JSONKeyPaths.
true
if the model is valid, false
otherwise.
Specifies how to map property keys to different key paths in JSON.
Values in the object can either be key paths in the JSON representation of the receiver or an array of such key paths. If an array is used, the deserialized value will be an object containing all of the keys in the array.
Any keys omitted will not participate in JSON serialization.
Specifies how to convert a JSON value to the given property key. If reversible, the transformer will also be used to convert the property value back to JSON.
If the receiver implements a <key>JSONTransformer
method, the result of that method will be used instead.
the name of the property.
a value transformer, or undefined if no transformation should be performed.
Overridden to parse the receiver as a different class, based on information in the provided object.
This is mostly useful for class clusters, where the abstract base class would be passed, but a subclass should be instantiated instead.
object to check the class for.
the class that should be parsed (which may be the receiver), or undefined to abort parsing (e.g. if the data is invalid).
Converts an array of models into an object array.
An array of models to use for JSON serialization.
Generated using TypeDoc
By default, this method looks for a
merge<Key>FromModel
method on the receiver, and invokes it if found. If not found, andmodel
is not null, the value for the given key is taken frommodel
.