BonusPayment class

An object representing a Bonus payment paid to a Worker.

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

Constructors

BonusPayment({String assignmentId, String bonusAmount, DateTime grantTime, String reason, String workerId})
BonusPayment.fromJson(Map<String, dynamic> json)
factory

Properties

assignmentId String
The ID of the assignment associated with this bonus payment.
@JsonKey(name: 'AssignmentId'), final
bonusAmount String
@JsonKey(name: 'BonusAmount'), final
grantTime DateTime
The date and time of when the bonus was granted.
@UnixDateTimeConverter(), @JsonKey(name: 'GrantTime'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
reason String
The Reason text given when the bonus was granted, if any.
@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 to whom the bonus was paid.
@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