ToJsonObjectConverter<T> class abstract base

A ToJsonObjectConverter is a class that checks if an object is of type T and converts it to a json representable object. Converters are considered equal, if their generic type argument T is the same.

Implementers
Annotations
  • @immutable

Constructors

ToJsonObjectConverter.new()
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(T value) → dynamic
Converts the provided value to a json representable object.
isType(dynamic value) bool
Returns true, if value is of type T.
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.
override