Field class Null safety
{@template field} Field is a field inside of a Collection's schema.
Constructors
-
Field({required String id, required DateTime created, required DateTime updated, required FieldType type, required String name, required bool system, required bool required, required bool unique, required Collection collection, @JsonExtra() @Default({}) Map<
String, dynamic> extra}) -
constfactory
-
Field.fromJson(Map<
String, dynamic> json) -
Creates a Field from Json map
factory
Properties
- collection → Collection
-
collection is the Collection that the Field belongs to.
read-onlyinherited
-
copyWith
→ $FieldCopyWith<
Field> -
read-onlyinherited
- created → DateTime
-
created is the date and time when the Field was created inside unself app.
read-onlyinherited
-
extra
→ Map<
String, dynamic> -
extra is a map of additional properties.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id → String
-
id is unself unique identifier for the Field.
read-onlyinherited
- name → String
-
name is the name of the Field.
read-onlyinherited
- required → bool
-
required is a flag that indicates if the Field is required.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- system → bool
-
system is a flag that indicates if the Field is a system field.
read-onlyinherited
- type → FieldType
-
type is the data type of the Field.
read-onlyinherited
- unique → bool
-
unique is a flag that indicates if the Field must be unique.
read-onlyinherited
- updated → DateTime
-
updated is the date and time when the Field was last updated inside unself app.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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