import 'dart:convert'; Xyz xyzFromJson(String str) => Xyz.fromJson(json.decode(str)); String xyzToJson(Xyz data) => json.encode(data.toJson()); class Xyz { Xyz({ this.callNo, this.roomNo, this.callType, this.createdON, this.doctorName, this.doctorNameN, this.editedON, this.mobileNo, this.patientGender, this.patientID, this.queueNo,}); Xyz.fromJson(dynamic json) { callNo = json['CallNo']; roomNo = json['RoomNo']; callType = json['CallType']; createdON = json['CreatedON']; doctorName = json['DoctorName']; doctorNameN = json['DoctorNameN']; editedON = json['EditedON']; mobileNo = json['MobileNo']; patientGender = json['PatientGender']; patientID = json['PatientID']; queueNo = json['QueueNo']; } int callNo; String roomNo; int callType; String createdON; String doctorName; String doctorNameN; String editedON; String mobileNo; int patientGender; int patientID; String queueNo; Map toJson() { final map = {}; map['CallNo'] = callNo; map['RoomNo'] = roomNo; map['CallType'] = callType; map['CreatedON'] = createdON; map['DoctorName'] = doctorName; map['DoctorNameN'] = doctorNameN; map['EditedON'] = editedON; map['MobileNo'] = mobileNo; map['PatientGender'] = patientGender; map['PatientID'] = patientID; map['QueueNo'] = queueNo; return map; } }