class InPatientAdvanceResponseModel { int? advanceNumber; Null errorCode; String? message; List? responseInpatientAdvanceInfo; int? statusCode; InPatientAdvanceResponseModel({this.advanceNumber, this.errorCode, this.message, this.responseInpatientAdvanceInfo, this.statusCode}); InPatientAdvanceResponseModel.fromJson(Map json) { advanceNumber = json['advanceNumber']; errorCode = json['errorCode']; message = json['message']; if (json['responseInpatientAdvanceInfo'] != null) { responseInpatientAdvanceInfo = []; json['responseInpatientAdvanceInfo'].forEach((v) { responseInpatientAdvanceInfo!.add(new ResponseInpatientAdvanceInfo.fromJson(v)); }); } statusCode = json['statusCode']; } Map toJson() { final Map data = new Map(); data['advanceNumber'] = this.advanceNumber; data['errorCode'] = this.errorCode; data['message'] = this.message; if (this.responseInpatientAdvanceInfo != null) { data['responseInpatientAdvanceInfo'] = this.responseInpatientAdvanceInfo!.map((v) => v.toJson()).toList(); } data['statusCode'] = this.statusCode; return data; } } class ResponseInpatientAdvanceInfo { int? admissionNo; int? admissionReqNo; String? createdOn; int? patientId; int? projectId; num? requestedAmount; String? setupId; int? status; int? paymentRequestID; ResponseInpatientAdvanceInfo({this.admissionNo, this.admissionReqNo, this.createdOn, this.patientId, this.projectId, this.requestedAmount, this.setupId, this.status, this.paymentRequestID}); ResponseInpatientAdvanceInfo.fromJson(Map json) { admissionNo = json['admissionNo']; admissionReqNo = json['admissionReqNo']; createdOn = json['createdOn']; patientId = json['patientId']; projectId = json['projectId']; requestedAmount = json['requestedAmount']; setupId = json['setupId']; status = json['status']; paymentRequestID = json['PaymentRequestId']; } Map toJson() { final Map data = new Map(); data['admissionNo'] = this.admissionNo; data['admissionReqNo'] = this.admissionReqNo; data['createdOn'] = this.createdOn; data['patientId'] = this.patientId; data['projectId'] = this.projectId; data['requestedAmount'] = this.requestedAmount; data['setupId'] = this.setupId; data['status'] = this.status; data['PaymentRequestId'] = this.paymentRequestID; return data; } }