AttendanceResponseModel class

Model representing the response data for attendance.

This model extends the AttendanceDetailModel and adds additional properties specific to the attendance response, such as clockoutDuration, clockToleranceDuration, trackerInterval, and trackerConfig.

Inheritance

Constructors

AttendanceResponseModel({int? id, required String date, required String clock, String? clockGmt, required AttendanceClockType? type, AttendanceImageModel? image, required double latitude, required double longitude, String? address, String? notes, String? scheduleClock, String? scheduleClockGmt, bool? isLate, List<String>? files, required Duration clockoutDuration, required Duration clockToleranceDuration, required Duration trackerInterval, required TrackerConfigModel trackerConfig})
const
AttendanceResponseModel.fromJson(Map<String, dynamic> json)
factory

Properties

address String?
The address corresponding to the geographical location where the attendance was recorded.
finalinherited
clock String
The clock time of the attendance entry.
finalinherited
clockGmt String?
The GMT time of the attendance clock.
finalinherited
clockoutDuration Duration
final
clockToleranceDuration Duration
final
date String
The date of the attendance entry.
finalinherited
files List<String>?
A list of file URLs associated with the attendance entry.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
The unique identifier of the attendance entry.
finalinherited
image AttendanceImageModel?
The image associated with the attendance entry.
finalinherited
isLate bool?
Indicates whether the attendance entry is marked as late.
finalinherited
latitude double
The latitude of the geographical location where the attendance was recorded.
finalinherited
longitude double
The longitude of the geographical location where the attendance was recorded.
finalinherited
notes String?
Additional notes or comments about the attendance entry.
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduleClock String?
The scheduled clock time for the attendance entry.
finalinherited
scheduleClockGmt String?
The GMT time of the scheduled clock.
finalinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
trackerConfig TrackerConfigModel
final
trackerInterval Duration
final
type AttendanceClockType?
The type of attendance clock (e.g., clock-in, clock-out).
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the AttendanceDetailModel instance to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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