TaskInfo class
Provides info about the status of a task that is triggered for execution.
Constructors
-
TaskInfo({required MessageStatus status, required String? startedAt, required String? completedAt, required Map<
String, dynamic> ? errors, required String? scheduledTaskId, required String scheduledTaskName, required String taskId, required String triggeredAt}) - Creates a instance of TaskInfo
-
TaskInfo.fromJson(Map<
String, dynamic> json) -
Creates a instance of TaskInfo from JsonMap.
factory
Properties
- completedAt ↔ String?
-
The task execution complete date-time
getter/setter pair
-
errors
↔ Map<
String, dynamic> ? -
Provides information about the errors occurred during execution
of the task
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledTaskId ↔ String?
-
The id of the scheduled task that is triggered
getter/setter pair
- scheduledTaskName ↔ String
-
The name of the scheduled task that is triggered
getter/setter pair
- startedAt ↔ String?
-
The task execution start date-time
getter/setter pair
- status ↔ MessageStatus
-
The status of the task. When the task is firts triggered, it is in
pending
status. When the task is being processed, its status changes toprocessing
. If task is successfully completed its status becomescomplete
otherwiese it becomeserrors
.getter/setter pair - taskId ↔ String
-
The id of the task
getter/setter pair
- triggeredAt ↔ String
-
The task trigger date-time
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert instance to JsonMap.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited