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, Iterable<String>? dbNames, required bool hasDefaultValue, @JsonKey(name: 'default') dynamic default_, Iterable<String>? relationFromFields, Iterable? relationToFields, String? relationOnDelete, String? relationName, String? documentation})
const
factory
Field.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $FieldCopyWith<Field>
no setterinherited
dbNames Iterable<String>?
no setterinherited
default_ → dynamic
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 Iterable<String>?
no setterinherited
relationName String?
no setterinherited
relationOnDelete String?
no setterinherited
relationToFields Iterable?
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