ClockButtonModel class
The ClockButtonModel class represents a model for the clock button configuration.
This model contains information about the clock status, button type, message type, break type, and start break time.
This class extends the Equatable class to enable easy comparison and equality checks.
Constructors
- ClockButtonModel({required bool isAlreadyClockout, required ClockButtonType type, required ClockMessageType messageType, required BreakType breakType, required String? startBreakTime})
-
Creates a new instance of the ClockButtonModel class.
const
-
ClockButtonModel.fromJson(Map<
String, dynamic> json) -
Creates a new ClockButtonModel instance from a JSON map.
factory
Properties
- breakType → BreakType
-
The break type associated with the clock button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlreadyClockout → bool
-
Indicates whether the clock is already clocked out.
final
- messageType → ClockMessageType
-
The message type associated with the clock button.
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
- startBreakTime → String?
-
The start break time (optional).
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → ClockButtonType
-
The type of the clock button.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the ClockButtonModel instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited