BcsSerialization class abstract

Abstract class for handling BCS (Binary Canonical Serialization) serialization logic.

Implementers

Constructors

BcsSerialization.new()
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
serializableType BcsSerializableType
Returns the serialization type. Defaults to object.
no setter

Methods

createLayout({String? property}) → Layout<Map<String, dynamic>>
Creates a layout structure for serialization.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBcs({String? property}) List<int>
Serializes the object to BCS format (List of bytes).
toBcsBase64() String
Converts the BCS-encoded bytes to a Base64 string.
toBcsHex() String
Converts the BCS-encoded bytes to a hexadecimal string.
toJson() Map<String, dynamic>
Converts the serialized object to a JSON-compatible Map.
toLayoutStruct() Map<String, dynamic>
Converts the current object to a layout-friendly structure (Map format).
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>
Deserializes a byte array into a structured Map using the provided layout.
toReadableObject(Object? val) Object?
Recursively converts complex objects into a human-readable format. Handles Maps, Lists, BigInt, byte arrays, etc.