MapPropertyStream class
A property stream for JSON object (map) values.
Provides:
- A future that completes with the full parsed map
- Chainable property getters to access nested properties
Use the chainable API to access nested properties:
final userMap = parser.getMapProperty('user');
final name = userMap.getStringProperty('name');
final age = userMap.getNumberProperty('age');
- Inheritance
-
- Object
- PropertyStream<
Map< String, Object?> > - MapPropertyStream
Constructors
-
MapPropertyStream({required Future<
Map< future, required JsonStreamParserController parserController, required String propertyPath})String, Object?> >
Properties
Methods
-
getBooleanProperty(
String key) → BooleanPropertyStream -
getListProperty<
E extends Object?> (String key, {void onElement(PropertyStream propertyStream, int index)?}) → ListPropertyStream< E> -
getMapProperty(
String key) → MapPropertyStream -
getNullProperty(
String key) → NullPropertyStream -
getNumberProperty(
String key) → NumberPropertyStream -
getStringProperty(
String key) → StringPropertyStream -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited