ApprovalRequestModel class
The ApprovalRequestModel
class represents an approval request.
It contains information such as the request ID, request name, request image, type, type label, request timestamp, status, status label, and optional metadata.
Constructors
- ApprovalRequestModel({required int id, required String requestName, String? requestImage, required String type, required String typeLabel, required String requestAt, required String status, required String statusLabel, MetaDataApprovalModel? metaData})
-
Creates a new instance of the
ApprovalRequestModel
class.const -
ApprovalRequestModel.fromJson(Map<
String, dynamic> json) -
Creates a new instance of the
ApprovalRequestModel
class from a JSON map.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier of the approval request.
final
- metaData → MetaDataApprovalModel?
-
The optional metadata associated with the approval request.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- requestAt → String
-
The timestamp when the request was made.
final
- requestImage → String?
-
The image associated with the requester.
final
- requestName → String
-
The name of the requester.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The status of the approval request.
final
- statusLabel → String
-
The label for the approval request status.
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - type → String
-
The type of the approval request.
final
- typeLabel → String
-
The label for the approval request type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited