TSerializable class abstract
Abstract base class providing serialization to multiple data formats.
Extends TWriteable and provides convenience methods for converting the object into YAML, Markdown, and XML representations. Requires concrete implementations to provide builder functions for each format they wish to support.
- Inheritance
-
- Object
- TWriteable
- TSerializable
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
mdFactory
↔ TMdFactory<
TWriteable> ? -
Returns a function that builds a Markdown string from a JSON map.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
xmlBuilder
↔ String Function(Map<
String, dynamic> json)? -
Returns a function that builds an XML string from a JSON map.
getter/setter pair
- yamlBuilder ↔ String Function(TWriteable writeable)?
-
Returns a function that builds a YAML string from a JSON map.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the object to a Firestore-compatible map.
inherited
-
toMarkdown(
{TMdFactory< TWriteable> ? mdFactory}) → String - Converts this object to a Markdown string.
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
) → String - Converts this object to an XML string.
-
toYaml(
) → String - Converts this object to a YAML string.
-
validate<
T> () → TurboResponse< T> ? -
Validates the object's data before writing to Firestore.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited