PayrollDetailModel constructor
const
PayrollDetailModel({
- required String name,
- String? image,
- required String designation,
- required PayrollStatus status,
- DateTime? paidOn,
- required double totalEarning,
- required double totalDeduction,
- required double totalAmount,
- double? totalAmountAfterPinalty,
- double? resignPinaltyAmount,
- required List<
PayrollComponentModel> earnings, - List<
PayrollComponentModel> ? deductions, - 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,
});