EncodingOptions class Generics Mapper Container
Additional options to be passed to MapperContainer.toValue.
Constructors
- EncodingOptions({bool? includeTypeId, bool inheritOptions = true, bool? shallow, Object? data})
Properties
- data → Object?
-
Custom data object passed to the mapper.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeTypeId → bool?
-
Whether to include the type id of the encoding object.
final
- inheritOptions → bool
-
Whether to inherit this options for nested calls to MapperContainer.toValue,
like for encoding fields of a class.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shallow → bool?
-
Whether to encode nested objects or just one level deep.
final
Methods
-
copyWith(
{Object? data}) → EncodingOptions -
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