SchemaResponse class

Result of validating a payload against a schema.

Constructors

SchemaResponse({required bool valid, required Map<String, dynamic> data, required Map<String, dynamic> schema, required Map<String, String> errors})
const

Properties

data → Map<String, dynamic>
The original (unmodified) data that was validated.
final
errors → Map<String, String>
Validation errors by field key -> message (or nested map).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → Map<String, dynamic>
A sanitized view of data that passed validation (keys with errors removed).
final
valid → bool
True if no validation errors occurred.
final

Methods

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

Operators

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