Constructors
-
SchemaString.new({Xml? xml, String? title, String? description, @JsonKey(name: 'default') String? defaultValue, bool? nullable, @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue) StringFormat? format, String? pattern, String? example, @JsonKey(fromJson: _fromJsonInt) int? minLength, @JsonKey(fromJson: _fromJsonInt) int? maxLength, bool? exclusiveMinimum, bool? exclusiveMaximum, @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref})
-
const
factory
-
SchemaString.fromJson(Map<String, dynamic> json)
-
factory
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