$UpdateParams<I, P> class
abstract
Parameters for updating an entity.
The type parameter I represents the ID type (e.g., String, int).
The type parameter P represents the patch type (Zorphy Patch or Map<String, dynamic>).
Example: UpdateParams<int, TodoPatch>(id: 123, data: patch)
This allows strongly-typed IDs and patch data instead of using dynamic.
- Implemented types
- Annotations
-
- @ZorphyValue()
- @Deprecated('Replaced in v8 by ZfaQuery<T> and concrete @ZorphyIntent classes in ZFA-008/ZFA-017')
Constructors
- $UpdateParams()
-
const
Properties
- data → P
-
The patch data to apply (Zorphy Patch or Partial map).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → I
-
The ID of the entity to update (strongly typed).
no setter
-
params
→ Map<
String, dynamic> ? -
Optional additional parameters (inherited from the params base in v2;
declared explicitly under v3, whose codegen does not merge base fields).
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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