BonusPayment.fromJson constructor

BonusPayment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BonusPayment.fromJson(Map<String, dynamic> json) {
  return BonusPayment(
    assignmentId: json['AssignmentId'] as String?,
    bonusAmount: json['BonusAmount'] as String?,
    grantTime: timeStampFromJson(json['GrantTime']),
    reason: json['Reason'] as String?,
    workerId: json['WorkerId'] as String?,
  );
}