JsonObjectDecodingMapper class
A Mapper that decodes a JSON object.
If jsonObject does contain some JSON field, the output is a value taken from the input object.
Constructors
- JsonObjectDecodingMapper(Map jsonObject)
Properties
- canReturnSame → bool
-
Whether the mapper can return the same instance it was given.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGeneratingSource → bool
-
Whether the mapper needs source code information such as constructor
names.
no setterinherited
- jsonObject → Map
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<
V> (V value, String name, {Kind< V> ? kind, Kind? superKind, V? defaultConstant, String? jsonName, List<Trait> tags = const []}) → V -
A shorthand for calling optional.
inherited
-
handle<
V> ({required ParameterType parameterType, required V value, required String name, Kind? kind, V? defaultConstant, String? jsonName, List< Trait> ? tags}) → V -
Handles calls to positional, optionalPositional, required, call,
optional.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optional<
V> (V value, String name, {Kind< V> ? kind, Kind? superKind, V? defaultConstant, String? jsonName, List<Trait> tags = const []}) → V -
Maps an optional named parameter of a constructor.
inherited
-
optionalPositional<
V> (V value, String name, {Kind< V> ? kind, Kind? superKind, V? defaultConstant, String? jsonName, List<Trait> tags = const []}) → V -
Maps an optional positional parameter of a constructor.
inherited
-
positional<
V> (V value, String name, {Kind< V> ? kind, Kind? superKind, String? jsonName, List<Trait> tags = const []}) → V -
Maps a required positional parameter of a constructor.
inherited
-
required<
V> (V value, String name, {Kind< V> ? kind, Kind? superKind, String? jsonName, List<Trait> tags = const []}) → V -
Maps a required named parameter of a constructor.
inherited
-
setConstructorIdentifier(
String identifier) → void -
Sets constructor identifier.
inherited
-
setDefaultValue(
String name, Object? value) → void -
Set default value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited