LayoutSerializable class abstract mixin

Mixin for objects that can be serialized/deserialized via a Layout.

Implementers

Constructors

LayoutSerializable()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toLayout({String? property}) → Layout<Map<String, dynamic>>
Converts the object into a Layout for serialization.
toSerializeBytes({String? property}) → List<int>
Serializes the object to bytes using its layout.
toSerializeJson() → Map<String, dynamic>
Serializes the object to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

deserialize({required List<int> bytes, required Layout<Map<String, dynamic>> layout}) → Map<String, dynamic>
Converts bytes into a Map using the provided layout.