CheckAcceptClockBodyModel class
The CheckAcceptClockBodyModel class represents a model for the request body used to check and accept clock entries.
This model contains information about the date, clock time, attendance type, and overtime ID (optional).
This class extends the Equatable class to enable easy comparison and equality checks.
Constructors
- CheckAcceptClockBodyModel({required DateTime date, required String clock, required AttendanceType type, int? overtimeId})
-
Creates a new instance of the CheckAcceptClockBodyModel class.
const
Properties
- clock → String
-
The clock time of the entry.
final
- date → DateTime
-
The date of the clock entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overtimeId → int?
-
The ID of the associated overtime (optional).
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
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - type → AttendanceType
-
The type of attendance (e.g., clock-in, clock-out).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the CheckAcceptClockBodyModel instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited