class Visit { int? id; int? visitNo; String? visitCode; int? ppmId; int? planNo; String? planCode; int? ppmScheduleId; int? ppmScheduleNo; String? ppmScheduleCode; int? assetId; String? assetName; String? assetSerialNo; String? assetNumber; String? warrantyEndDate; int? modelId; String? modelName; int? manufacturerId; String? manufacturerName; int? siteId; String? siteName; int? assignedToId; String? assignedToName; String? jobSheetNo; String? assignedEmployeeId; String? assignedEmployeeName; String? expectedDate; String? actualDate; String? nextDate; String? forwardToId; String? forwardToName; int? maintenanceContractId; String? contractNumber; int? typeOfServiceId; String? typeOfServiceName; int? executionTimeFrameId; String? executionTimeFrameName; String? externalEngineer; String? telephone; int? groupLeaderReviewId; String? groupLeaderReviewName; int? timePeriodId; String? timePeriodName; List? vCalibrationTools; List? vKits; List? vContacts; List? vChecklists; List? vAttachments; int? visitStatusId; String? visitStatusName; String? startDate; String? endDate; String? workingHours; String? travelingHours; int? deviceStatusId; String? deviceStatusName; String? comments; String? workPerformed; int? supplierId; String? supplierName; int? ppmSupplierId; String? ppmSupplierName; String? createdOn; String? modifiedOn; int? taskStatusId; String? taskStatusName; Visit( {this.id, this.visitNo, this.visitCode, this.ppmId, this.planNo, this.planCode, this.ppmScheduleId, this.ppmScheduleNo, this.ppmScheduleCode, this.assetId, this.assetName, this.assetSerialNo, this.assetNumber, this.warrantyEndDate, this.modelId, this.modelName, this.manufacturerId, this.manufacturerName, this.siteId, this.siteName, this.assignedToId, this.assignedToName, this.jobSheetNo, this.assignedEmployeeId, this.assignedEmployeeName, this.expectedDate, this.actualDate, this.nextDate, this.forwardToId, this.forwardToName, this.maintenanceContractId, this.contractNumber, this.typeOfServiceId, this.typeOfServiceName, this.executionTimeFrameId, this.executionTimeFrameName, this.externalEngineer, this.telephone, this.groupLeaderReviewId, this.groupLeaderReviewName, this.timePeriodId, this.timePeriodName, this.vCalibrationTools, this.vKits, this.vContacts, this.vChecklists, this.vAttachments, this.visitStatusId, this.visitStatusName, this.startDate, this.endDate, this.workingHours, this.travelingHours, this.deviceStatusId, this.deviceStatusName, this.comments, this.workPerformed, this.supplierId, this.supplierName, this.ppmSupplierId, this.ppmSupplierName, this.createdOn, this.modifiedOn, this.taskStatusId, this.taskStatusName}); Visit.fromJson(Map json) { id = json['id']; visitNo = json['visitNo']; visitCode = json['visitCode']; ppmId = json['ppmId']; planNo = json['planNo']; planCode = json['planCode']; ppmScheduleId = json['ppmScheduleId']; ppmScheduleNo = json['ppmScheduleNo']; ppmScheduleCode = json['ppmScheduleCode']; assetId = json['assetId']; assetName = json['assetName']; assetSerialNo = json['assetSerialNo']; assetNumber = json['assetNumber']; warrantyEndDate = json['warrantyEndDate']; modelId = json['modelId']; modelName = json['modelName']; manufacturerId = json['manufacturerId']; manufacturerName = json['manufacturerName']; siteId = json['siteId']; siteName = json['siteName']; assignedToId = json['assignedToId']; assignedToName = json['assignedToName']; jobSheetNo = json['jobSheetNo']; assignedEmployeeId = json['assignedEmployeeId']; assignedEmployeeName = json['assignedEmployeeName']; expectedDate = json['expectedDate']; actualDate = json['actualDate']; nextDate = json['nextDate']; forwardToId = json['forwardToId']; forwardToName = json['forwardToName']; maintenanceContractId = json['maintenanceContractId']; contractNumber = json['contractNumber']; typeOfServiceId = json['typeOfServiceId']; typeOfServiceName = json['typeOfServiceName']; executionTimeFrameId = json['executionTimeFrameId']; executionTimeFrameName = json['executionTimeFrameName']; externalEngineer = json['externalEngineer']; telephone = json['telephone']; groupLeaderReviewId = json['groupLeaderReviewId']; groupLeaderReviewName = json['groupLeaderReviewName']; timePeriodId = json['timePeriodId']; timePeriodName = json['timePeriodName']; if (json['vCalibrationTools'] != null) { vCalibrationTools = []; json['vCalibrationTools'].forEach((v) { vCalibrationTools!.add(VCalibrationTools.fromJson(v)); }); } if (json['vKits'] != null) { vKits = []; json['vKits'].forEach((v) { vKits!.add(VKits.fromJson(v)); }); } if (json['vContacts'] != null) { vContacts = []; json['vContacts'].forEach((v) { vContacts!.add(VContacts.fromJson(v)); }); } if (json['vChecklists'] != null) { vChecklists = []; json['vChecklists'].forEach((v) { vChecklists!.add(VChecklists.fromJson(v)); }); } vAttachments = json['vAttachments'].cast(); visitStatusId = json['visitStatusId']; visitStatusName = json['visitStatusName']; startDate = json['startDate']; endDate = json['endDate']; workingHours = json['workingHours']; travelingHours = json['travelingHours']; deviceStatusId = json['deviceStatusId']; deviceStatusName = json['deviceStatusName']; comments = json['comments']; workPerformed = json['workPerformed']; supplierId = json['supplierId']; supplierName = json['supplierName']; ppmSupplierId = json['ppmSupplierId']; ppmSupplierName = json['ppmSupplierName']; createdOn = json['createdOn']; modifiedOn = json['modifiedOn']; taskStatusId = json['taskStatusId']; taskStatusName = json['taskStatusName']; } Map toJson() { final Map data = {}; data['id'] = id; data['visitNo'] = visitNo; data['visitCode'] = visitCode; data['ppmId'] = ppmId; data['planNo'] = planNo; data['planCode'] = planCode; data['ppmScheduleId'] = ppmScheduleId; data['ppmScheduleNo'] = ppmScheduleNo; data['ppmScheduleCode'] = ppmScheduleCode; data['assetId'] = assetId; data['assetName'] = assetName; data['assetSerialNo'] = assetSerialNo; data['assetNumber'] = assetNumber; data['warrantyEndDate'] = warrantyEndDate; data['modelId'] = modelId; data['modelName'] = modelName; data['manufacturerId'] = manufacturerId; data['manufacturerName'] = manufacturerName; data['siteId'] = siteId; data['siteName'] = siteName; data['assignedToId'] = assignedToId; data['assignedToName'] = assignedToName; data['jobSheetNo'] = jobSheetNo; data['assignedEmployeeId'] = assignedEmployeeId; data['assignedEmployeeName'] = assignedEmployeeName; data['expectedDate'] = expectedDate; data['actualDate'] = actualDate; data['nextDate'] = nextDate; data['forwardToId'] = forwardToId; data['forwardToName'] = forwardToName; data['maintenanceContractId'] = maintenanceContractId; data['contractNumber'] = contractNumber; data['typeOfServiceId'] = typeOfServiceId; data['typeOfServiceName'] = typeOfServiceName; data['executionTimeFrameId'] = executionTimeFrameId; data['executionTimeFrameName'] = executionTimeFrameName; data['externalEngineer'] = externalEngineer; data['telephone'] = telephone; data['groupLeaderReviewId'] = groupLeaderReviewId; data['groupLeaderReviewName'] = groupLeaderReviewName; data['timePeriodId'] = timePeriodId; data['timePeriodName'] = timePeriodName; if (vCalibrationTools != null) { data['vCalibrationTools'] = vCalibrationTools!.map((v) => v.toJson()).toList(); } if (vKits != null) { data['vKits'] = vKits!.map((v) => v.toJson()).toList(); } if (vContacts != null) { data['vContacts'] = vContacts!.map((v) => v.toJson()).toList(); } if (vChecklists != null) { data['vChecklists'] = vChecklists!.map((v) => v.toJson()).toList(); } data['vAttachments'] = vAttachments; data['visitStatusId'] = visitStatusId; data['visitStatusName'] = visitStatusName; data['startDate'] = startDate; data['endDate'] = endDate; data['workingHours'] = workingHours; data['travelingHours'] = travelingHours; data['deviceStatusId'] = deviceStatusId; data['deviceStatusName'] = deviceStatusName; data['comments'] = comments; data['workPerformed'] = workPerformed; data['supplierId'] = supplierId; data['supplierName'] = supplierName; data['ppmSupplierId'] = ppmSupplierId; data['ppmSupplierName'] = ppmSupplierName; data['createdOn'] = createdOn; data['modifiedOn'] = modifiedOn; data['taskStatusId'] = taskStatusId; data['taskStatusName'] = taskStatusName; return data; } } class VCalibrationTools { int? id; int? visitId; int? assetId; String? assetSerialNo; String? calibrationDateOfTesters; VCalibrationTools({this.id, this.visitId, this.assetId, this.assetSerialNo, this.calibrationDateOfTesters}); VCalibrationTools.fromJson(Map json) { id = json['id']; visitId = json['visitId']; assetId = json['assetId']; assetSerialNo = json['assetSerialNo']; calibrationDateOfTesters = json['calibrationDateOfTesters']; } Map toJson() { final Map data = {}; data['id'] = id; data['visitId'] = visitId; data['assetId'] = assetId; data['assetSerialNo'] = assetSerialNo; data['calibrationDateOfTesters'] = calibrationDateOfTesters; return data; } } class VKits { int? id; int? visitId; int? partCatalogItemId; String? partNumber; String? oracleCode; String? partName; String? partName2; VKits({this.id, this.visitId, this.partCatalogItemId, this.partNumber, this.oracleCode, this.partName, this.partName2}); VKits.fromJson(Map json) { id = json['id']; visitId = json['visitId']; partCatalogItemId = json['partCatalogItemId']; partNumber = json['partNumber']; oracleCode = json['oracleCode']; partName = json['partName']; partName2 = json['partName2']; } Map toJson() { final Map data = {}; data['id'] = id; data['visitId'] = visitId; data['partCatalogItemId'] = partCatalogItemId; data['partNumber'] = partNumber; data['oracleCode'] = oracleCode; data['partName'] = partName; data['partName2'] = partName2; return data; } } class VContacts { int? id; int? visitId; String? title; String? person; String? job; String? email; String? telephone; String? landLine; VContacts({this.id, this.visitId, this.title, this.person, this.job, this.email, this.telephone, this.landLine}); VContacts.fromJson(Map json) { id = json['id']; visitId = json['visitId']; title = json['title']; person = json['person']; job = json['job']; email = json['email']; telephone = json['telephone']; landLine = json['landLine']; } Map toJson() { final Map data = {}; data['id'] = id; data['visitId'] = visitId; data['title'] = title; data['person'] = person; data['job'] = job; data['email'] = email; data['telephone'] = telephone; data['landLine'] = landLine; return data; } } class VChecklists { int? id; int? visitId; String? task; int? taskStatusId; String? taskStatusName; String? taskComment; String? measuredValue; VChecklists({this.id, this.visitId, this.task, this.taskStatusId, this.taskStatusName, this.taskComment, this.measuredValue}); VChecklists.fromJson(Map json) { id = json['id']; visitId = json['visitId']; task = json['task']; taskStatusId = json['taskStatusId']; taskStatusName = json['taskStatusName']; taskComment = json['taskComment']; measuredValue = json['measuredValue']; } Map toJson() { final Map data = {}; data['id'] = id; data['visitId'] = visitId; data['task'] = task; data['taskStatusId'] = taskStatusId; data['taskStatusName'] = taskStatusName; data['taskComment'] = taskComment; data['measuredValue'] = measuredValue; return data; } }