DestinationArgumentConverter class Null safety

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.
read-onlyinherited
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.
read-onlyinherited

Methods

addHelper(String type, DestinationArgumentFromJson mapper) → void
Add the specified pojo from json mapper for the specified type 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 non-existent 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.
read / write

Static Methods

pojoFromJson(Object? json) Object?
Convert pojo from json.
pojoToJson(Object? pojo) Object?
Convert pojo to json.