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).
Generated using TypeDoc
This interface defines the minimal that classes need to implement to interact with the helpers.
It is intended for scenarios where inheriting from Model is not feasible.