HasToJson<T extends Object> class Null safety

Marker interface that define that a pojo can be converted to json.

https://en.wikipedia.org/wiki/Marker_interface_pattern

Constructors

HasToJson()
Const constructor to allow child to define their const constructor and be used in const expressions.
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() → T
Convert the pojo to a valid json representation.
toString() String
A string representation of this object.
inherited

Operators

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