AttendanceDetailModel class
The AttendanceDetailModel
class represents a model for attendance details.
This model contains information about a specific attendance entry, including ID, date, clock time, clock GMT, attendance type, image, geographical location (latitude and longitude), address, notes, schedule clock, schedule clock GMT, late status, and associated files.
- Implementers
Constructors
-
AttendanceDetailModel({int? id, required String date, required String clock, String? clockGmt, AttendanceClockType? type, AttendanceImageModel? image, required double latitude, required double longitude, String? address, String? notes, String? scheduleClock, String? scheduleClockGmt, bool? isLate, List<
String> ? files}) -
Creates a new instance of the
AttendanceDetailModel
class.const -
AttendanceDetailModel.fromJson(Map<
String, dynamic> json) -
Creates a new instance of the
AttendanceDetailModel
class from a JSON map.factory
Properties
- address → String?
-
The address corresponding to the geographical location where the attendance was recorded.
final
- clock → String
-
The clock time of the attendance entry.
final
- clockGmt → String?
-
The GMT time of the attendance clock.
final
- date → String
-
The date of the attendance entry.
final
-
files
→ List<
String> ? -
A list of file URLs associated with the attendance entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The unique identifier of the attendance entry.
final
- image → AttendanceImageModel?
-
The image associated with the attendance entry.
final
- isLate → bool?
-
Indicates whether the attendance entry is marked as late.
final
- latitude → double
-
The latitude of the geographical location where the attendance was recorded.
final
- longitude → double
-
The longitude of the geographical location where the attendance was recorded.
final
- notes → String?
-
Additional notes or comments about the attendance entry.
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
- scheduleClock → String?
-
The scheduled clock time for the attendance entry.
final
- scheduleClockGmt → String?
-
The GMT time of the scheduled clock.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → AttendanceClockType?
-
The type of attendance clock (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
AttendanceDetailModel
instance to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited