ClockBodyModel class
The ClockBodyModel
class represents a model for clocking in/out data.
This model contains various attributes related to clocking in/out, such as the date, clock time, attendance type, notes, location coordinates, image ID, address, overtime ID, file IDs, and working from type.
Constructors
-
ClockBodyModel({DateTime? date, required String clock, required AttendanceType type, String? notes, required double latitude, required double longitude, required int imageId, required String address, int? overtimeId, List<
int> ? filesId, required WorkingFromType workingFrom}) -
Creates a new instance of the
ClockBodyModel
class.const
Properties
- address → String
-
The address of the clock entry location.
final
- clock → String
-
The clock time of the clock entry.
final
- date → DateTime?
-
The date of the clock entry.
final
-
filesId
→ List<
int> ? -
The IDs of the files associated with the clock entry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageId → int
-
The ID of the clock entry image.
final
- latitude → double
-
The latitude coordinate of the clock entry location.
final
- longitude → double
-
The longitude coordinate of the clock entry location.
final
- notes → String?
-
Additional notes for the clock entry.
final
- overtimeId → int?
-
The overtime ID associated with the clock 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
- stringify → bool
-
If set to
true
, the toString method will be overridden to output this instance's props.no setter - type → AttendanceType
-
The attendance type of the clock entry.
final
- workingFrom → WorkingFromType
-
The working from type of the clock entry.
final
Methods
-
copyWith(
{DateTime? date, String? clock, AttendanceType? type, String? notes, double? latitude, double? longitude, int? imageId, String? address, int? overtimeId, List< int> ? filesId, WorkingFromType? workingFrom}) → ClockBodyModel -
Creates a new instance of the
ClockBodyModel
class by copying the existing instance and overriding certain attributes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ClockBodyModel
instance to a JSON map. -
toJsonNoFiles(
) → Map< String, dynamic> -
Converts the
ClockBodyModel
instance to a JSON map without including file IDs. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited