JsonMapperAdapter class
Base class for JsonMapper adapters
- Implemented types
Constructors
-
JsonMapperAdapter({Map<
Type, ICustomConverter> converters = const {}, Map<Type, ValueDecoratorFunction> valueDecorators = const {}, Map<int, ITypeInfoDecorator> typeInfoDecorators = const {}, Map<Type, dynamic> enumValues = const {}, Map<Symbol, String> ? memberSymbolMap, Map<Reflectable, ReflectorData> ? reflectableData, String title = 'JsonMapperAdapter', String? refUrl, String url = 'https://github.com/k-paxian/dart-json-mapper/tree/master/adapters'}) -
const
Properties
-
converters
→ Map<
Type, ICustomConverter> -
A Map of converter instances to be used for handling certain
Type
final -
enumValues
→ Map<
Type, dynamic> -
A Map of Enum descriptors. Enum as a key and value could be
Enum.values
or EnumDescriptorfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- isGenerated → bool
-
true
value declares the fact that this adapter has been built from code generation w/o manual interventions and it will be initialized with the first priority.no setteroverride -
memberSymbolMap
→ Map<
Symbol, String> ? -
This mapping translates symbols to strings for the covered members.
It will be initialized in the generated code.
final
-
reflectableData
→ Map<
Reflectable, ReflectorData> ? -
This mapping contains the mirror-data for each reflector.
It will be initialized in the generated code.
final
- refUrl → String?
-
URL to the code/package which contains types this adapter is built for
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Brief adapter description / purpose
final
-
typeInfoDecorators
→ Map<
int, ITypeInfoDecorator> -
A Map of
ITypeInfoDecorator
instances used to decorate an instance of TypeInfo using an array of decorators, in the order of priority given by theint
keyfinal - url → String
-
URL to the adapter source code
final
-
valueDecorators
→ Map<
Type, ValueDecoratorFunction> -
A Map of value decorator functions to be used for decorating
Type
instances during Deserialization processfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited