Updates & fixes
parent
a60f66a069
commit
b92e45aa93
@ -0,0 +1,64 @@
|
||||
class AdmissionStatusForSickLeave {
|
||||
String setupID;
|
||||
int projectID;
|
||||
int patientID;
|
||||
int patientType;
|
||||
int requestNo;
|
||||
String requestDate;
|
||||
int sickLeaveDays;
|
||||
int appointmentNo;
|
||||
int admissionNo;
|
||||
String reportDate;
|
||||
String placeOfWork;
|
||||
int status;
|
||||
dynamic dischargeDate;
|
||||
|
||||
AdmissionStatusForSickLeave(
|
||||
{this.setupID,
|
||||
this.projectID,
|
||||
this.patientID,
|
||||
this.patientType,
|
||||
this.requestNo,
|
||||
this.requestDate,
|
||||
this.sickLeaveDays,
|
||||
this.appointmentNo,
|
||||
this.admissionNo,
|
||||
this.reportDate,
|
||||
this.placeOfWork,
|
||||
this.status,
|
||||
this.dischargeDate});
|
||||
|
||||
AdmissionStatusForSickLeave.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
projectID = json['ProjectID'];
|
||||
patientID = json['PatientID'];
|
||||
patientType = json['PatientType'];
|
||||
requestNo = json['RequestNo'];
|
||||
requestDate = json['RequestDate'];
|
||||
sickLeaveDays = json['SickLeaveDays'];
|
||||
appointmentNo = json['AppointmentNo'];
|
||||
admissionNo = json['AdmissionNo'];
|
||||
reportDate = json['ReportDate'];
|
||||
placeOfWork = json['PlaceOfWork'];
|
||||
status = json['Status'];
|
||||
dischargeDate = json['DischargeDate'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['PatientType'] = this.patientType;
|
||||
data['RequestNo'] = this.requestNo;
|
||||
data['RequestDate'] = this.requestDate;
|
||||
data['SickLeaveDays'] = this.sickLeaveDays;
|
||||
data['AppointmentNo'] = this.appointmentNo;
|
||||
data['AdmissionNo'] = this.admissionNo;
|
||||
data['ReportDate'] = this.reportDate;
|
||||
data['PlaceOfWork'] = this.placeOfWork;
|
||||
data['Status'] = this.status;
|
||||
data['DischargeDate'] = this.dischargeDate;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,19 @@
|
||||
extension CapExtension on String {
|
||||
import 'dart:convert';
|
||||
import 'package:crypto/crypto.dart';
|
||||
|
||||
extension CapExtension on String {
|
||||
String get toCamelCase => "${this[0].toUpperCase()}${this.substring(1)}";
|
||||
|
||||
String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}';
|
||||
|
||||
String get allInCaps => this.toUpperCase();
|
||||
String get capitalizeFirstofEach => this.trim().length > 0 ? this.trim().toLowerCase().split(" ").map((str) => str.isNotEmpty ? str.inCaps: str).join(" ") : "";
|
||||
|
||||
String get capitalizeFirstofEach => this.trim().length > 0 ? this.trim().toLowerCase().split(" ").map((str) => str.isNotEmpty ? str.inCaps : str).join(" ") : "";
|
||||
}
|
||||
|
||||
extension HashSha on String {
|
||||
String get toSha256 {
|
||||
var bytes = utf8.encode(this);
|
||||
return sha256.convert(bytes).toString();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue