PayrollDetailModel constructor

const PayrollDetailModel({
  1. required String name,
  2. String? image,
  3. required String designation,
  4. required PayrollStatus status,
  5. DateTime? paidOn,
  6. required double totalEarning,
  7. required double totalDeduction,
  8. required double totalAmount,
  9. double? totalAmountAfterPinalty,
  10. double? resignPinaltyAmount,
  11. required List<PayrollComponentModel> earnings,
  12. List<PayrollComponentModel>? deductions,
  13. required String publicUrl,
})

The PayrollDetailModel class represents a model for payroll details.

It extends the Equatable class to enable easy equality comparisons.

Implementation

const PayrollDetailModel({
  required this.name,
  this.image,
  required this.designation,
  required this.status,
  this.paidOn,
  required this.totalEarning,
  required this.totalDeduction,
  required this.totalAmount,
  this.totalAmountAfterPinalty,
  this.resignPinaltyAmount,
  required this.earnings,
  this.deductions,
  required this.publicUrl,
});