import 'package:doctor_app_flutter/util/date-utils.dart'; class PatientMuseResultsModel { int rowID; String setupID; int projectID; String orderNo; int lineItemNo; int patientType; int patientID; String procedureID; dynamic reportData; String imageURL; String createdBy; String createdOn; DateTime createdOnDateTime; PatientMuseResultsModel( {this.rowID, this.setupID, this.projectID, this.orderNo, this.lineItemNo, this.patientType, this.patientID, this.procedureID, this.reportData, this.imageURL, this.createdBy, this.createdOn}); PatientMuseResultsModel.fromJson(Map json) { rowID = json['RowID']; setupID = json['SetupID']; projectID = json['ProjectID']; orderNo = json['OrderNo']; lineItemNo = json['LineItemNo']; patientType = json['PatientType']; patientID = json['PatientID']; procedureID = json['ProcedureID']; reportData = json['ReportData']; imageURL = json['ImageURL']; createdBy = json['CreatedBy']; createdOn = json['CreatedOn']; createdOnDateTime = DateUtils.getDateTimeFromServerFormat(json['CreatedOn']); } Map toJson() { final Map data = new Map(); data['RowID'] = this.rowID; data['SetupID'] = this.setupID; data['ProjectID'] = this.projectID; data['OrderNo'] = this.orderNo; data['LineItemNo'] = this.lineItemNo; data['PatientType'] = this.patientType; data['PatientID'] = this.patientID; data['ProcedureID'] = this.procedureID; data['ReportData'] = this.reportData; data['ImageURL'] = this.imageURL; data['CreatedBy'] = this.createdBy; data['CreatedOn'] = this.createdOn; return data; } }