JsonConvertible<T> class abstract interface

An abstract interface for objects that can be converted to JSON.

The JsonConvertible interface provides a method toJson() that converts the object to a JSON representation.

The type parameter T represents the type of the JSON representation.

Implementers

Constructors

JsonConvertible()

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → T
Converts the object to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

serialize(dynamic value) → dynamic
Serializes a dynamic value into a JSON representation.