Serializable class

Marks a class as serializable by d_serializer_builder.

Constructors

Serializable({String? rename, String? discriminator, String? typeField, bool strict = false, JsonNaming naming = JsonNaming.none})
const

Properties

discriminator → String?
Explicit discriminator value used for polymorphic payloads.
final
hashCode → int
The hash code for this object.
no setterinherited
naming → JsonNaming
Global naming strategy for fields in this class.
final
rename → String?
Optional alias used as discriminator fallback.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strict → bool
Enables strict deserialization for unknown keys.
final
typeField → String?
JSON field name used to store/read the discriminator.
final

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