JsonObjectTraverser mixin

A mixin for reperesenting an object

Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sij StreamIterator<JsonEvent>
The iterator to be used while parsing
latefinal

Methods

loadJsonFromStream(Stream<JsonEvent> s) Future<void>

Available on JsonTraverser, provided by the JsonTraverserExtensions extension

Starts the loading of the json value to the correspoding json value from the s
loadJsonFromString(String json) Future<void>

Available on JsonTraverser, provided by the JsonTraverserExtensions extension

Starts the loading of the json value to the correspoding json value from the json
loadJsonFromStringStream(Stream<String> s) Future<void>

Available on JsonTraverser, provided by the JsonTraverserExtensions extension

Starts the loading of the json value to the correspoding json value from the s
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postProcessJson() FutureOr<void>
This function can be used to add logic after the json value is parsed This is called after loadJson is finished. It is safe to leave it as empty function body
override
readArrayJsonContinue<T>({FutureOr<T> creator()?, bool callLoader = true}) Stream<T>
Reads the current value as array from the iterator
readJson(String key) FutureOr<void>
This function is called every time a new key is encountered. How the json is parsed should be implemented inside this function
readNestedArrayJsonContinue<T extends List, E>({FutureOr<E> creator()?, bool callLoader = true}) Stream<T>
Reads the current value as array from the iterator
readObjectJsonContinue<T extends JsonObjectTraverser>({required FutureOr<T> creator()}) FutureOr<T>
Reads the current value as object from the iterator
readPropertyJsonContinue<T>({T? defaultValue}) FutureOr<T>
Reads the current value from the iterator
toString() String
A string representation of this object.
inherited

Operators

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