ObjectProperty class
Represents an object schema property with nested properties and optional additionalProperties.
- Implemented types
Constructors
-
ObjectProperty({required List<
PropertyNameAndSchema> properties, dynamic additionalProperties, String? ref, required bool nullable, TPropertyType type = TPropertyType.objectProperty, required String? format, dynamic defaultValue, required List<String> enumValues, TProperty? items}) -
ObjectProperty.fromJson(Map<
String, dynamic> json) -
Creates an ObjectProperty from a JSON Schema fragment.
factory
Properties
- additionalProperties → dynamic
-
Additional properties allowed in the object, can be a schema or
true/false.final - defaultValue → dynamic
-
final
-
enumValues
→ List<
String> -
final
- format → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- items → TProperty?
-
final
- nullable → bool
-
final
-
properties
→ List<
PropertyNameAndSchema> -
The list of named child properties and their schemas.
final
- ref → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → TPropertyType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited