AckUnknownPropertyPolicy enum

How a class-first object treats properties that are not declared fields.

reject is the default: unknown properties fail validation. discard accepts unknown properties during validation but does not store them on the model. It is intended for tolerant, read-only consumers. capture stores unknown properties in AckModel.captureField and flattens them back onto the wire during encoding. Declared fields and union discriminators always win over captured extras. Models that must round-trip unknown properties use capture.

Inheritance
Available extensions

Values

reject → const AckUnknownPropertyPolicy
discard → const AckUnknownPropertyPolicy
capture → const AckUnknownPropertyPolicy

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<AckUnknownPropertyPolicy>
A constant List of the values in this enum, in order of their declaration.