SerializableLibrary class

Marks a library import as dogs serializable.

All types defined inside or exported by the library will be considered serializable. The include and exclude parameters can be used to further restrict the set of serializable types.

Types that semantically match a structure conformity or compatibility check must also be correct, invalid items will not be skipped but throw an exception. You must explicitly exclude types that are not serializable using the exclude parameter, or only include types that are serializable using the include parameter.

For built_value types, the not serializable builder will automatically be excluded, but will be used for the generation of the actual type converter.

Constructors

SerializableLibrary({List<String>? include, List<String>? exclude})
see @SerializableLibrary.
const

Properties

exclude List<String>?
A list of regex patterns that match the type identifiers to exclude from the serialization.
final
hashCode int
The hash code for this object.
no setterinherited
include List<String>?
A list of regex patterns that match the type identifiers to include in the serialization.
final
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
toString() String
A string representation of this object.
inherited

Operators

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