DVModelAccess class

Who may read, create, change and delete a model's records.

A model designed in Studio has no @DVPolicy class to say so, so its definition does, and its data API asks this. An application that registers a policy for <Model>.<action> in code is asked instead.

Constructors

DVModelAccess({DVAccess view = DVAccess.team, DVAccess create = DVAccess.team, DVAccess update = DVAccess.team, DVAccess delete = DVAccess.team})
const
DVModelAccess.fromJson(Map<Object?, Object?> json)
factory

Properties

create → DVAccess
final
delete → DVAccess
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
update → DVAccess
final
view → DVAccess
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(String action) → DVAccess
The rule for action: view, create, update or delete.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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