JsonNode<T> class ast decoder encoder

A single JSON node representation consisting of a String key and T data.

Implementers

Constructors

JsonNode({required String key, required T data, List<TypeAnnotation> annotations = const <TypeAnnotation>[]})
extends JsonNode { Construct a new JsonNode.
const

Properties

annotations List<TypeAnnotation>
Metadata annotations which alter (de)serialization of this node.
final
data → T
The JSON data of type T.
final
hashCode int
The hash code for this object.
read-onlyinherited
key String
The JSON key (tag name).
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify String
Convert to formatted JSON String.
read-only

Methods

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