DynaType class
DynaType
is a class representing a key-type pair in JSON data.
It is used in conjunction with DynaValidator
to define a JSON schema
for validation.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
key
is the name of the field in the JSON data.final -
props
→ List<
Object> -
Overrides
props
fromEquatable
to includekey
andtype
for equality checks and fortoString
usage.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - type → Type
-
type
is the expected data type of the field in the JSON data.final
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