SchemaMap class

Inheritance
Implementers

Constructors

SchemaMap(Map<String, SchemaValue> properties, {bool isOptional = false, bool additionalProperties = false})
const
SchemaMap.optional(Map<String, SchemaValue> properties, {bool additionalProperties = false})
const

Properties

additionalProperties bool
final
hashCode int
The hash code for this object.
no setterinherited
isOptional bool
finalinherited
isRequired bool
no setterinherited
properties Map<String, SchemaValue>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validators List<Validator<Map<String, dynamic>>>
finalinherited

Methods

copyWith({bool? isOptional, bool? additionalProperties, Map<String, SchemaValue>? properties}) SchemaMap
override
getSchemaValue<T extends SchemaValue>(String key) → T?
merge(Map<String, SchemaValue> properties, {bool? additionalProperties, bool? isOptional}) SchemaMap
mergeSchema(SchemaMap schema) SchemaMap
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional() SchemaValue<Map<String, dynamic>>
inherited
required() SchemaValue<Map<String, dynamic>>
inherited
toString() String
A string representation of this object.
inherited
tryParse(Object? value) Map<String, dynamic>?
override
validate(List<String> path, Object? value) SchemaValidationResult
override
validateOrThrow(String key, Object value) → void
inherited

Operators

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