JsonSchemaType enum Null safety
An instance has one of six primitive types, and a range of possible values depending on the type:
-
null: A JSON "null" value (For the purposes of this library, we use 'nil' instead of 'null').
-
boolean: A "true" or "false" value, from the JSON "true" or "false" value
-
object: An unordered set of properties mapping a string to an instance, from the JSON "object" value
-
array: An ordered list of instances, from the JSON "array" value
-
number: An arbitrary-precision, base-10 decimal number value, from the JSON "number" value
-
string: A string of Unicode code points, from the JSON "string" value
Constructors
- JsonSchemaType()
-
const
Values
- nil → const JsonSchemaType
-
null: A JSON "null" value (For the purposes of this library, we use 'nil' instead of 'null').
- boolean → const JsonSchemaType
-
boolean: A "true" or "false" value, from the JSON "true" or "false" value
- object → const JsonSchemaType
-
object: An unordered set of properties mapping a string to an instance, from the JSON "object" value
- array → const JsonSchemaType
-
array: An ordered list of instances, from the JSON "array" value
- number → const JsonSchemaType
-
number: An arbitrary-precision, base-10 decimal number value, from the JSON "number" value
- string → const JsonSchemaType
-
string: A string of Unicode code points, from the JSON "string" value
- none → const JsonSchemaType
-
SPECIAL_CASE_NONE: A special case for when the type is not defined.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
JsonSchemaType> -
A constant List of the values in this enum, in order of their declaration.
[nil, boolean, object, array, number, string, none]