Constructors
SchemaObject.new ({String ? title , String ? description , @JsonKey(name: 'default') dynamic defaultValue , @JsonKey(name: '\$ref') @_SchemaRefConverter() String ? ref , @_SchemaListConverter() List <Schema > ? allOf , @_SchemaListConverter() List <Schema > ? oneOf , @_SchemaListConverter() List <Schema > ? anyOf , List <String > ? required , Discriminator ? discriminator , ExternalDocs ? externalDocs , Map <String , Schema > ? properties , bool ? nullable , Xml ? xml })
const
factory
SchemaObject.fromJson (Map <String , dynamic > json )
factory
Properties
allOf
→ List <Schema > ?
The allOf definition
no setter
anyOf
→ List <Schema > ?
The anyOf definition
no setter
copyWith
→ _$$SchemaObjectImplCopyWith<_$SchemaObjectImpl >
Create a copy of Schema
with the given fields replaced by the non-null parameter values.
no setter
defaultValue
→ dynamic
The default value code to place into @Default()
no setter
description
→ String ?
A short description of the schema
no setter
discriminator
→ Discriminator ?
Adds support for polymorphism.
The discriminator is an object name that is used to differentiate between
other schemas which may satisfy the payload description
no setter
externalDocs
→ ExternalDocs ?
Additional external documentation for this schema.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
nullable
→ bool ?
Define if this scheme is nullable
no setter
oneOf
→ List <Schema > ?
The allOf definition
no setter
properties
→ Map <String , Schema > ?
The properties of the schema
no setter
ref
→ String ?
Reference to a schema definition
no setter
required
→ List <String > ?
The required properties of the schema
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
title
→ String ?
A summary title of the schema
no setter
type
→ SchemaType
Get the schema type based on the union type
no setter inherited
xml
→ Xml ?
Any extra properties to add to this schema
Adds additional metadata to describe the XML representation of this property.
no setter
Methods
dereference ({required Map <String , Schema > ? components })
→ Schema
inherited
map <TResult extends Object ? > ({required TResult object (SchemaObject value ), required TResult boolean (SchemaBoolean value ), required TResult string (SchemaString value ), required TResult integer (SchemaInteger value ), required TResult number (SchemaNumber value ), required TResult enumeration (SchemaEnum value ), required TResult array (SchemaArray value ), required TResult map (SchemaMap value ) })
→ TResult
inherited
mapOrNull <TResult extends Object ? > ({TResult? object (SchemaObject value )?, TResult? boolean (SchemaBoolean value )?, TResult? string (SchemaString value )?, TResult? integer (SchemaInteger value )?, TResult? number (SchemaNumber value )?, TResult? enumeration (SchemaEnum value )?, TResult? array (SchemaArray value )?, TResult? map (SchemaMap value )? })
→ TResult?
inherited
maybeMap <TResult extends Object ? > ({TResult object (SchemaObject value )?, TResult boolean (SchemaBoolean value )?, TResult string (SchemaString value )?, TResult integer (SchemaInteger value )?, TResult number (SchemaNumber value )?, TResult enumeration (SchemaEnum value )?, TResult array (SchemaArray value )?, TResult map (SchemaMap value )?, required TResult orElse () })
→ TResult
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDartType ({Map <String , List <String > > ? unions })
→ String
Return a proper Dart type for this schema
inherited
toJson ()
→ Map <String , dynamic >
Serializes this Schema to a JSON map.
inherited
toString ()
→ String
A string representation of this object.
inherited