Serializable class abstract

Interface for serializable instances to be decoded from an HTTP request body and encoded to an HTTP response body.

Implementers of this interface may be a Response.body and bound with an Bind.body in ResourceController.

Implementers

Constructors

Serializable()

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

asMap() Map<String, dynamic>?
Returns a serializable version of an object.
documentSchema(APIDocumentContext context) APISchemaObject
Returns an APISchemaObject describing this object's type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Map<String, dynamic> object, {Iterable<String>? accept, Iterable<String>? ignore, Iterable<String>? reject, Iterable<String>? require}) → void
Reads values from object, after applying filters.
readFromMap(Map<String, dynamic> object) → void
Reads values from object.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

shouldAutomaticallyDocument bool
Whether a subclass will automatically be registered as a schema component automatically.
no setter