EasyIssue class
A single problem found while parsing or validating a JSON payload.
Returned (never thrown) by the generated fromJsonSafe and validate
functions, so a payload can be inspected for every problem at once instead
of failing on the first one.
Properties
- code → String
-
A short, stable machine-readable code identifying the kind of problem.
Safe to switch on. One of:
'missing_required','type_mismatch','null_not_allowed','invalid_enum','invalid_enum_index','key_type_mismatch','invalid_uri','invalid_bigint','invalid_base64','min_length','max_length','regex_mismatch','invalid_email','invalid_url','invalid_uuid','min_value','max_value','must_be_past','must_be_future','custom_validation_failed'or'unknown_union_type'. See the "Issue codes" section of the README for what each one means.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable explanation, in English, suitable for logs or as a
starting point for a user-facing message.
final
- path → String
-
The field's JSON path, e.g.
'address.street'or, inside a list/map,'items[2].street'/'items.someKey'.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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited