Message class

Message details. Describe the conditions under which messages will be sent. If no attribute is defined, no message will be sent by default. One message should specify either the job or the task level attributes, but not both. For example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task level: TASK_STATE_CHANGED and/or a specified new_task_state.

Constructors

Message({Input<MessageNewJobState>? newJobState, Input<MessageNewTaskState>? newTaskState, Input<MessageType>? type})
Creates a new Message. newJobState The new job state. newTaskState The new task state. type The message type.
const
Message.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
newJobState → Input<MessageNewJobState>?
The new job state.
final
newTaskState → Input<MessageNewTaskState>?
The new task state.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Input<MessageType>?
The message type.
final

Methods

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

Operators

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