DVStudioModel class
A model, as the backend describes it.
Constructors
-
DVStudioModel({required String model, required String key, required List<
DVStudioField> fields, bool versioned = true, String? module, DVStudioModelOrigin origin = DVStudioModelOrigin.code, bool softDelete = false, List<DVStudioIndexSpec> indexes = const <DVStudioIndexSpec>[], DVModelAccess? access}) -
const
-
DVStudioModel.fromJson(Map<
String, Object?> json) -
factory
Properties
- access → DVModelAccess?
-
Who may do what through the model's data API, or null for a model
whose policies are written in code.
final
-
definition
→ Map<
String, Object?> -
The model as its designer sends it back: key, fields with their rules,
indexes and access.
no setter
- designed → bool
-
Whether Studio designs this model, rather than showing one written in
code.
no setter
-
fields
→ List<
DVStudioField> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
DVStudioIndexSpec> -
The indexes the model asks its database for.
final
- key → String
-
final
- model → String
-
The name the backend addresses the model by:
notes.Memofor a mounted module's.final - module → String?
-
The mounted module the model belongs to, or null.
final
- origin → DVStudioModelOrigin
-
Where the model is defined: in code, or designed in Studio.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- softDelete → bool
-
Whether deleting a record marks it rather than removing it.
final
- versioned → bool
-
final
-
visibleFields
→ List<
DVStudioField> -
The fields Studio shows: every one that is not sensitive.
no setter
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