WorkerBlock class

The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block.

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: true, createToJson: false)

Constructors

WorkerBlock({String reason, String workerId})
WorkerBlock.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
reason String
A message explaining the reason the Worker was blocked.
@JsonKey(name: 'Reason'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
workerId String
The ID of the Worker who accepted the HIT.
@JsonKey(name: 'WorkerId'), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited