JsonSchema class

Constructors

JsonSchema({String? P_ref, JsonSchema? additionalProperties, JsonSchemaAnnotations? annotations, String? default_, bool? deprecated, String? description, List<String>? enum_, List<bool>? enumDeprecated, List<String>? enumDescriptions, String? format, String? id, JsonSchema? items, String? location, String? maximum, String? minimum, String? pattern, Map<String, JsonSchema>? properties, bool? readOnly, bool? repeated, bool? required, String? type, JsonSchemaVariant? variant})
JsonSchema.fromJson(Map json_)

Properties

additionalProperties ↔ JsonSchema?
If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
getter/setter pair
annotations ↔ JsonSchemaAnnotations?
Additional information about this property.
getter/setter pair
default_ ↔ String?
The default value of this property (if one exists).
getter/setter pair
deprecated ↔ bool?
Whether the parameter is deprecated.
getter/setter pair
description ↔ String?
A description of this object.
getter/setter pair
enum_ ↔ List<String>?
Values this parameter may take (if it is an enum).
getter/setter pair
enumDeprecated ↔ List<bool>?
The deprecation status for the enums.
getter/setter pair
enumDescriptions ↔ List<String>?
The descriptions for the enums.
getter/setter pair
format ↔ String?
An additional regular expression or key that helps constrain the value.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
Unique identifier for this schema.
getter/setter pair
items ↔ JsonSchema?
If this is a schema for an array, this property is the schema for each element in the array.
getter/setter pair
location ↔ String?
Whether this parameter goes in the query or the path for REST requests.
getter/setter pair
maximum ↔ String?
The maximum value of this parameter.
getter/setter pair
minimum ↔ String?
The minimum value of this parameter.
getter/setter pair
P_ref ↔ String?
A reference to another schema.
getter/setter pair
pattern ↔ String?
The regular expression this parameter must conform to.
getter/setter pair
properties ↔ Map<String, JsonSchema>?
If this is a schema for an object, list the schema for each property of this object.
getter/setter pair
readOnly ↔ bool?
The value is read-only, generated by the service.
getter/setter pair
repeated ↔ bool?
Whether this parameter may appear multiple times.
getter/setter pair
required ↔ bool?
Whether the parameter is required.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
The value type for this schema.
getter/setter pair
variant ↔ JsonSchemaVariant?
In a variant data type, the value of one property is used to determine how to interpret the entire entity.
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