Schema class

Top-level schema representation parsed from the user's JSON file.

This mirrors the user-provided schema shape closely to keep parsing simple, while enabling nested response trees and presentation configuration.

Constructors

Schema({Api? api, Map<String, dynamic>? response, Config? config, bool isList = false})
Schema.fromJson(Map<String, dynamic> json)
factory

Properties

api Api?
final
config Config?
final
hashCode int
The hash code for this object.
no setterinherited
isList bool
Whether the response is an array at the root level.
final
response Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

responseParser(dynamic response) → (Map<String, dynamic>, bool)
Unwraps array responses, returning the inner element map and a flag.