ApproversModel class
The ApproversModel
class represents an approver of an approval request.
Constructors
- ApproversModel({required int userId, required String approverName, String? approverImage, required String designation, required String status, required String statusLabel, required String? reason, required String? timestamp, required String? timestampGmt})
-
Creates an instance of the
ApproversModel
class.const -
ApproversModel.fromJson(Map<
String, dynamic> json) -
Creates an instance of the
ApproversModel
class from a JSON map.factory
Properties
- approverImage → String?
-
The image URL of the approver.
final
- approverName → String
-
The name of the approver.
final
- designation → String
-
The designation of the approver.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- reason → String?
-
The reason for the approval.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The status of the approval.
final
- statusLabel → String
-
The label of the approval status.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - timestamp → String?
-
The timestamp of the approval.
final
- timestampGmt → String?
-
The GMT timestamp of the approval.
final
- userId → int
-
The ID of the user.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the
ApproversModel
instance to a JSON map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited