JsonConverter<T, S> class
Null safety
Implement this class to provide custom converters for a specific Type.
T
is the data type you'd like to convert to and from.
S
is the type of the value stored in JSON. It must be a valid JSON type
such as String, int, or Map<String, dynamic>.
Constructors
- JsonConverter()
-
const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
fromJson(
S json) → T -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
T object) → S -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited