Decorators
@system-inc/base-foundation · 515c140 · 2 symbols
@SerializableField
decorator
A field on a @SerializableObject class, included when instances are
serialized and deserialized. The type function tells the deserializer what
to construct for the property.
typeFuncThe type of the property.
optionsField options such as `name`, `optional`, `defaultValue`, or a custom `transformer`.
@SerializableObject
decorator
Marks a class as serializable, allowing instances to be converted to JSON
with serialize and reconstructed with deserialize. Only properties
marked @SerializableField cross the wire — internal fields never leak.