JsonObjectOrNull class ast decoder encoder

JSON Object (Map) element.

Inheritance

Constructors

JsonObjectOrNull({required String key, required Map<String, JsonNode>? data})
Construct a new JsonObjectOrNull instance.
const
JsonObjectOrNull.fromMap({Map<String, dynamic>? data, String key = ""})
Construct a new JsonObjectOrNull using the specified key values of each JsonNode.
factory

Properties

annotations List<TypeAnnotation>
Metadata annotations which alter (de)serialization of this node.
finalinherited
asObjectOrNull JsonObject?
Get data wrapped in JsonObject or null if data is not present.
read-only
data Map<String, JsonNode>?
The JSON data of type T.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
key String
The JSON key (tag name).
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify String
Convert to formatted JSON String.
read-onlyinherited

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