Field class

Annotations
  • @freezed

Constructors

Field({required FieldKind kind, required String name, required bool isRequired, required bool isList, required bool isUnique, required bool isId, required bool isReadOnly, bool? isGenerated, bool? isUpdatedAt, required String type, String? dbName, required bool hasDefaultValue, Object? default$, List<String>? relationFromFields, List? relationToFields, String? relationOnDelete, String? relationName, String? documentation})
const
factory
Field.fromJson(Map<String, dynamic> json)
factory

Properties

dbName String?
no setterinherited
default$ Object?
no setterinherited
documentation String?
no setterinherited
hasDefaultValue bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isGenerated bool?
no setterinherited
isId bool
no setterinherited
isList bool
no setterinherited
isReadOnly bool
no setterinherited
isRequired bool
no setterinherited
isUnique bool
no setterinherited
isUpdatedAt bool?
no setterinherited
kind FieldKind
no setterinherited
name String
no setterinherited
relationFromFields List<String>?
no setterinherited
relationName String?
no setterinherited
relationOnDelete String?
no setterinherited
relationToFields List?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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