class rewardListResponse { RewardsList? rewardsList; String? achievedAmount; String? disbursedAmount; String? balanceAmount; String? error; String? message; int? sessionExists; rewardListResponse( {this.rewardsList, this.achievedAmount, this.disbursedAmount, this.balanceAmount, this.error, this.message, this.sessionExists}); rewardListResponse.fromJson(Map json) { rewardsList = json['rewards_list'] != null ? new RewardsList.fromJson(json['rewards_list']) : null; achievedAmount = json['achieved_amount']; disbursedAmount = json['disbursed_amount']; balanceAmount = json['balance_amount']; error = json['error']; message = json['message']; sessionExists = json['session_exists']; } Map toJson() { final Map data = new Map(); if (this.rewardsList != null) { data['rewards_list'] = this.rewardsList!.toJson(); } data['achieved_amount'] = this.achievedAmount; data['disbursed_amount'] = this.disbursedAmount; data['balance_amount'] = this.balanceAmount; data['error'] = this.error; data['message'] = this.message; data['session_exists'] = this.sessionExists; return data; } } class RewardsList { String? id; String? empId; String? description; String? type; String? cAmount; String? dAmount; String? enteredBy; String? isApproved; String? approvedBy; String? approvedDatetime; String? updatedDatetime; String? isExist; String? dateTime; String? employeeName; String? entryName; RewardsList( {this.id, this.empId, this.description, this.type, this.cAmount, this.dAmount, this.enteredBy, this.isApproved, this.approvedBy, this.approvedDatetime, this.updatedDatetime, this.isExist, this.dateTime, this.employeeName, this.entryName}); RewardsList.fromJson(Map json) { id = json['id']; empId = json['emp_id']; description = json['description']; type = json['type']; cAmount = json['c_amount']; dAmount = json['d_amount']; enteredBy = json['entered_by']; isApproved = json['is_approved']; approvedBy = json['approved_by']; approvedDatetime = json['approved_datetime']; updatedDatetime = json['updated_datetime']; isExist = json['is_exist']; dateTime = json['date_time']; employeeName = json['employee_name']; entryName = json['entry_name']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['emp_id'] = this.empId; data['description'] = this.description; data['type'] = this.type; data['c_amount'] = this.cAmount; data['d_amount'] = this.dAmount; data['entered_by'] = this.enteredBy; data['is_approved'] = this.isApproved; data['approved_by'] = this.approvedBy; data['approved_datetime'] = this.approvedDatetime; data['updated_datetime'] = this.updatedDatetime; data['is_exist'] = this.isExist; data['date_time'] = this.dateTime; data['employee_name'] = this.employeeName; data['entry_name'] = this.entryName; return data; } }