JsonParser class
Parses JSON into a tree of WidgetDescriptor. Supports optional
schemaVersion and ui wrapper. Normalizes to children for layout nodes.
Validates schemaVersion when present; backward compatibility within major version.
Constructors
-
JsonParser({List<
String> supportedVersions = supportedSchemaVersions})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedVersions
→ List<
String> -
Schema versions accepted when
schemaVersionis present in JSON.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseMap(
Map< String, dynamic> json) → ParsedUi -
Parse from a decoded map. Throws JsonParserException on invalid structure.
When
schemaVersionis present, it must be in supportedVersions. -
parseString(
String jsonString) → ParsedUi -
Parse from a JSON string. Throws on invalid JSON or missing
type. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited