IterableMapper<I extends Iterable> class Custom Mappers

The default mapper for iterables like List.

Inheritance
Mixed in types
Implementers

Constructors

IterableMapper(Iterable<U> fromIterable<U>(Iterable<U> iterable), Function typeFactory)

Properties

fromIterable Iterable<U> Function<U>(Iterable<U> iterable)
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique id for this type, defaults to the name of the type.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
A getter for the type of this mapper.
no setterinherited
typeFactory Function
A type factory is what makes generic types work.
final

Methods

decoder(Object value, DecodingContext context) → I
The mapping method to decode value to an instance of this mappers type.
override
decodeValue<V>(Object? value, [DecodingOptions? options, MapperContainer? container]) → V
inherited
encoder(I value, EncodingContext context) Object
The mapping method to encode value to a serializable value.
override
encodeValue<V>(V value, [EncodingOptions? options, MapperContainer? container]) Object?
inherited
equality(Equality child) → Equality
override
equals(I value, I other, MappingContext context) bool
The mapping method to compare value and other for equality.
inherited
equalsValue(I value, Object? other, [MapperContainer? container]) bool
inherited
hash(I value, MappingContext context) int
Creates a combined hash code for a number of objects.
inherited
hashValue(I value, [MapperContainer? container]) int
inherited
includeTypeId<V>(dynamic v) bool
override
isFor(dynamic v) bool
inherited
isForType(Type type) bool
inherited
isValueEqual(I value, Object? other, [MapperContainer? container]) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringify(I value, MappingContext context) String
The mapping method to get the string representation of value.
override
stringifyValue(I value, [MapperContainer? container]) String
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

equalityMode IterableEqualityMode
Defines how an Iterable object is checked for equality. See IterableEqualityMode for all possible values.
getter/setter pair