PayrollDetailModel class

Constructors

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.
const
PayrollDetailModel.fromJson(Map<String, dynamic> json)
Creates a new instance of the PayrollDetailModel class from a JSON map.
factory

Properties

deductions List<PayrollComponentModel>?
The list of deduction components in the payroll detail (optional).
final
designation String
The designation of the payroll detail.
final
earnings List<PayrollComponentModel>
The list of earnings components in the payroll detail.
final
hashCode int
The hash code for this object.
no setterinherited
image String?
The image of the payroll detail (optional).
final
name String
The name of the payroll detail.
final
paidOn DateTime?
The date when the payroll was paid (optional).
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
publicUrl String
The public URL associated with the payroll detail.
final
resignPinaltyAmount double?
The penalty amount for resignations (optional).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PayrollStatus
The status of the payroll detail.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
totalAmount double
The total amount of the payroll detail.
final
totalAmountAfterPinalty double?
The total amount of the payroll detail after penalty (optional).
final
totalDeduction double
The total deduction amount of the payroll detail.
final
totalEarning double
The total earning amount of the payroll detail.
final

Methods

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

Operators

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