ApprovalRequest class

Approval request details.

Constructors

ApprovalRequest({required String requestId, required String requestType, required String requesterId, required String description, Map<String, dynamic> context = const {}, required List<String> approverIds, Duration? timeout, ApprovalPolicy policy = ApprovalPolicy.anyOne, ApprovalPriority priority = ApprovalPriority.normal, String? entityId, Map<String, dynamic> metadata = const {}})
const
ApprovalRequest.fromJson(Map<String, dynamic> json)
factory

Properties

approverIds → List<String>
List of user/role IDs who can approve.
final
context → Map<String, dynamic>
Context data for the approval decision.
final
description → String
Human-readable description of what needs approval.
final
entityId → String?
Entity ID this approval is related to.
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>
Additional metadata.
final
policy → ApprovalPolicy
Approval policy to use.
final
priority → ApprovalPriority
Priority of the request.
final
requesterId → String
ID of the requester (user or system).
final
requestId → String
Unique request identifier.
final
requestType → String
Type of request (e.g., 'skill_execution', 'profile_change', 'data_export').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration?
Optional timeout for the request.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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