JsonObject class abstract

Implementers

Constructors

JsonObject(List<Object?> fields, {bool? stringify})
Construct JsonObject. Parameter fields defines property names in toJson. Use stringify to control toString behaviour. @macro equatable_stringify}

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Check if toJson is empty (no key/value pairs)
no setter
isNotEmpty bool
Check if toJson is not empty (at least key/value pair)
no setter
names Iterable<String>
Get property names
no setter
props List<Object?>
{@template equatable_props}
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
@macro equatable_stringify}
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() JsonMap
Get object as json
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? name) Object?
Get value with property name from toJson