DestinationArgumentConverter class
Class that help convert pojo to json representation and json to pojo.
Contains a registry of pojo type to DestinationArgumentFromJson.
Constructors
- DestinationArgumentConverter()
-
Get an instance of DestinationArgumentConverter.
factory
-
DestinationArgumentConverter.private(Map<
String, DestinationArgumentFromJson> helpers) - Create a instance of DestinationArgumentConverter with this list of helpers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
helpers
→ Map<
String, DestinationArgumentFromJson> -
Map of pojo type in string to mapping function.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addHelper(
String type, DestinationArgumentFromJson mapper) → void -
Add the specified pojo from json
mapper
for the specifiedtype
to the mapper registry. -
clearHelper(
) → void - Clear the helper registry.
-
getHelperRegistry(
) → Map< String, DestinationArgumentFromJson> -
Get the current
DestinationArgumentFromJson
registry. -
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
Static Properties
- instance ↔ DestinationArgumentConverter?
-
The singleton instance of the DestinationArgumentConverter.
getter/setter pair
Static Methods
-
pojoFromJson(
Object? json) → Object? -
Convert pojo from
json
. -
pojoToJson(
Object? pojo) → Object? -
Convert
pojo
to json.