PrimitiveProperty class

Represents a primitive schema property (e.g., string, integer, number, boolean).

Captures optional format, enum values, and default when present.

Implemented types

Constructors

PrimitiveProperty({required TPropertyType type, String? ref, required bool nullable, String? format, required List<String> enumValues, dynamic defaultValue, TProperty? items})
PrimitiveProperty.fromJson(Map<String, dynamic> json)
Creates a PrimitiveProperty from a JSON Schema fragment.
factory

Properties

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
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