Serializable<S extends Serializable<S>> mixin

Serializable - mixin in 1 step for serialization provide toMap or implements MapBase and duplicate code until combine mixin is support mixin toMap<K extends Enum, V> implmenting Map would require subclasses to mixin MapBase

Implemented types
Available extensions

Properties

data StructData<SerializableField, dynamic>
Proxy to allow the same keys Object as Structure<K, V> data passed to Keys
no setteroverride
fields Iterable<SerializableEntry<Object?>>
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
keys List<SerializableField<Object?>>
a method from its TypeObject The ordered list of keys — defines the schema. Typically returns MyField.values for an enum-based key type.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable<Object?>
no setteroverride

Methods

field(covariant SerializableField key) SerializableEntry<Object?>
override
fieldAs<R>(covariant SerializableField<R> key) SerializableEntry<R>
override
fieldOrNull(SerializableField key) Object?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>

Available on Serializable<Serializable>, provided by the SerializableMethods extension

toMap() FieldMap<SerializableField, Object?>
Snapshot as an IndexMap. If K extends Enum, call .toJson() on the result to serialise via EnumMapByName.
override
toString() String
A string representation of this object.
override
trySetField(SerializableField key, Object? value) bool
override

Operators

operator ==(Object other) bool
Value equality: two structures are equal if they share the same keys reference (same schema) and all corresponding field values are equal.
override
operator [](covariant SerializableField key) Object?
override
operator []=(covariant SerializableField key, Object? value) → void
override