NTreeArgConverter<BASE> class
abstract
A converter interface for a generic type with a fixed number of type arguments. Used together with TreeBaseConverterFactory.createNargsFactory to create a DogConverter for generic types.
Constructors
Properties
- canSerializeNull → bool
-
Whether this converter can serialize null values.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
itemConverters
↔ List<
DogConverter> -
Pre-resolved item converters for the type arguments.
getter/setter pair
-
nativeModes
↔ List<
NativeSerializerMode> -
Pre-resolved native serializers for the type arguments.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tree ↔ TypeTree
-
The type tree of the generic type instance.
getter/setter pair
-
validationModes
↔ List<
ValidationMode?> -
Pre-resolved validation modes for the type arguments.
getter/setter pair
Methods
-
deserialize(
dynamic value, DogEngine engine) → BASE -
Deserializes a
value
to an instance ofBASE
. -
deserializeArg(
dynamic value, int index, DogEngine engine) → dynamic -
Deserializes a the
value
using the converter of theindex
th type argument. -
inferSchemaType(
DogEngine engine, SchemaConfig config) → SchemaType -
Infers the schema type of the
BASE
type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
BASE value, DogEngine engine) → dynamic -
Serializes a
value
to a dynamic value. -
serializeArg(
dynamic value, int index, DogEngine engine) → dynamic -
Serializes a the
value
using the converter of theindex
th type argument. -
toString(
) → String -
A string representation of this object.
inherited
-
traverse(
dynamic value, DogEngine engine) → Iterable< (dynamic, int)>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited