PropertySpec class final

Specification for an object property.

Constructors

PropertySpec({required String name, String? jsonName, required TypeSpec type, bool required = true})
Creates a new PropertySpec.
const

Properties

effectiveName String
Returns the effective name to use in the schema.
no setter
hashCode int
The hash code for this object.
no setterinherited
jsonName String?
The JSON/serialized name (may differ from name).
final
name String
The Dart field name.
final
required bool
Whether this property is required.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TypeSpec
The type specification of this property.
final

Methods

copyWith({String? name, String? jsonName, TypeSpec? type, bool? required}) PropertySpec
Creates a copy with the given modifications.
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