SchemaMap class
- Inheritance
-
- Object
- SchemaValue<
Map< String, dynamic> > - SchemaMap
- Implementers
Constructors
-
SchemaMap(Map<
String, SchemaValue> properties, {bool optional = false, bool additionalProperties = false, List<Validator< validators = const []})Map< >String, dynamic> > -
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< ? validators}) → SchemaMapMap< >String, dynamic> > -
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