SchemaMap class

Inheritance
Implementers

Constructors

SchemaMap(Map<String, SchemaValue> properties, {bool optional = false, bool additionalProperties = false, List<Validator<Map<String, dynamic>>> validators = const []})
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
optional bool
finalinherited
properties Map<String, SchemaValue>
final
required bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validators List<Validator<Map<String, dynamic>>>
finalinherited

Methods

copyWith({bool? optional, bool? additionalProperties, Map<String, SchemaValue>? properties, List<Validator<Map<String, dynamic>>>? validators}) SchemaMap
override
getSchemaValue<T extends SchemaValue>(String key) → T?
isOptional() SchemaValue<Map<String, dynamic>>
inherited
isRequired() SchemaValue<Map<String, dynamic>>
inherited
merge(Map<String, SchemaValue> properties, {bool? additionalProperties, bool? optional}) SchemaMap
mergeSchema(SchemaMap schema) SchemaMap
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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(Object value) → void
inherited

Operators

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