toJson method
Converts the ApproversModel
instance to a JSON map.
Returns a JSON map representation of the ApproversModel
instance.
Implementation
Map<String, dynamic> toJson() {
return {
'user_id': userId,
'approver_name': approverName,
'approver_image': approverImage,
'designation': designation,
'status': status,
'status_label': statusLabel,
'reason': reason,
'timestamp': timestamp,
'timestamp_gmt': timestampGmt,
};
}