You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.8 KiB
Dart
65 lines
1.8 KiB
Dart
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<String, dynamic> 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 = AppDateUtils.getDateTimeFromServerFormat(json['CreatedOn']);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
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;
|
|
}
|
|
}
|