JsonSchema class

JsonSchema representation of schema metadata

Constructors

JsonSchema({Object? default_, String? description, List<Object?>? enum_, String? format, JsonSchema? items, String? jdbcType, Map<String, JsonSchema>? properties, List<String>? required, List<String>? type})
JsonSchema.fromJson(Map json_)

Properties

default_ Object?
The default value of the field or object described by this schema.
getter/setter pair
description String?
A description of this schema.
getter/setter pair
enum_ List<Object?>?
Possible values for an enumeration.
getter/setter pair
format String?
Format of the value as per https://json-schema.org/understanding-json-schema/reference/string.html#format
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
items JsonSchema?
Schema that applies to array values, applicable only if this is of type array.
getter/setter pair
jdbcType String?
JDBC datatype of the field. Possible string values are:
getter/setter pair
properties Map<String, JsonSchema>?
The child schemas, applicable only if this is of type object.
getter/setter pair
required List<String>?
Whether this property is required.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type List<String>?
JSON Schema Validation: A Vocabulary for Structural Validation of JSON
getter/setter pair

Methods

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

Operators

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