PayrollModel class

Constructors

PayrollModel({required int id, required String name, DateTime? date, required PayrollStatus status, required double totalAmount})
The PayrollModel class represents a model for a payroll.
const
PayrollModel.fromJson(Map<String, dynamic> json)
Creates a new instance of the PayrollModel class from a JSON map.
factory

Properties

date DateTime?
The date of the payroll (optional).
final
hashCode int
The hash code for this object.
no setterinherited
id int
The ID of the payroll.
final
name String
The name of the payroll.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PayrollStatus
The status of the payroll.
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.
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