SchemaMap class abstract

Inheritance

Constructors

SchemaMap.new({Xml? xml, String? title, String? description, @JsonKey(name: 'default') Map? defaultValue, bool? nullable, Map? example, @JsonKey(name: 'additionalProperties', toJson: _toMapProps, fromJson: _fromMapProps) Schema? valueSchema, @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref})
const
factory
SchemaMap.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → _$$SchemaMapImplCopyWith<_$SchemaMapImpl>
Create a copy of Schema with the given fields replaced by the non-null parameter values.
no setter
defaultValue Map?
The default value code to place into @Default()
no setter
description String?
A short description of the schema
no setter
example Map?
no setter
hashCode int
The hash code for this object.
no setterinherited
nullable bool?
Define if this scheme is nullable
no setter
ref String?
Reference to a schema definition
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
A summary title of the schema
no setter
type SchemaType
Get the schema type based on the union type
no setterinherited
valueSchema Schema?
no setter
xml Xml?
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

Operators

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