@ -0,0 +1,40 @@
|
||||
class PatientDentalPlanEstimationResponseModel {
|
||||
dynamic setupID;
|
||||
dynamic estimationNo;
|
||||
int? projectID;
|
||||
String? procedureId;
|
||||
int? patientID;
|
||||
int? sequenceNo;
|
||||
int? neededTime;
|
||||
String? procedureName;
|
||||
String? procedureNameN;
|
||||
|
||||
PatientDentalPlanEstimationResponseModel(
|
||||
{this.setupID, this.estimationNo, this.projectID, this.procedureId, this.patientID, this.sequenceNo, this.neededTime, this.procedureName, this.procedureNameN});
|
||||
|
||||
PatientDentalPlanEstimationResponseModel.fromJson(Map<String, dynamic> json) {
|
||||
setupID = json['SetupID'];
|
||||
estimationNo = json['EstimationNo'];
|
||||
projectID = json['ProjectID'];
|
||||
procedureId = json['ProcedureId'];
|
||||
patientID = json['PatientID'];
|
||||
sequenceNo = json['sequenceNo'];
|
||||
neededTime = json['NeededTime'];
|
||||
procedureName = json['ProcedureName'];
|
||||
procedureNameN = json['ProcedureNameN'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['SetupID'] = this.setupID;
|
||||
data['EstimationNo'] = this.estimationNo;
|
||||
data['ProjectID'] = this.projectID;
|
||||
data['ProcedureId'] = this.procedureId;
|
||||
data['PatientID'] = this.patientID;
|
||||
data['sequenceNo'] = this.sequenceNo;
|
||||
data['NeededTime'] = this.neededTime;
|
||||
data['ProcedureName'] = this.procedureName;
|
||||
data['ProcedureNameN'] = this.procedureNameN;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,83 @@
|
||||
class GetTamaraInstallmentsDetailsResponseModel {
|
||||
String? name;
|
||||
String? description;
|
||||
MinLimit? minLimit;
|
||||
MinLimit? maxLimit;
|
||||
List<SupportedInstalments>? supportedInstalments;
|
||||
|
||||
GetTamaraInstallmentsDetailsResponseModel({this.name, this.description, this.minLimit, this.maxLimit, this.supportedInstalments});
|
||||
|
||||
GetTamaraInstallmentsDetailsResponseModel.fromJson(Map<String, dynamic> json) {
|
||||
name = json['name'];
|
||||
description = json['description'];
|
||||
minLimit = json['minLimit'] != null ? new MinLimit.fromJson(json['minLimit']) : null;
|
||||
maxLimit = json['maxLimit'] != null ? new MinLimit.fromJson(json['maxLimit']) : null;
|
||||
if (json['supportedInstalments'] != null) {
|
||||
supportedInstalments = <SupportedInstalments>[];
|
||||
json['supportedInstalments'].forEach((v) {
|
||||
supportedInstalments!.add(new SupportedInstalments.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['name'] = this.name;
|
||||
data['description'] = this.description;
|
||||
if (this.minLimit != null) {
|
||||
data['minLimit'] = this.minLimit!.toJson();
|
||||
}
|
||||
if (this.maxLimit != null) {
|
||||
data['maxLimit'] = this.maxLimit!.toJson();
|
||||
}
|
||||
if (this.supportedInstalments != null) {
|
||||
data['supportedInstalments'] = this.supportedInstalments!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class MinLimit {
|
||||
String? currency;
|
||||
num? amount;
|
||||
|
||||
MinLimit({this.currency, this.amount});
|
||||
|
||||
MinLimit.fromJson(Map<String, dynamic> json) {
|
||||
currency = json['currency'];
|
||||
amount = json['amount'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['currency'] = this.currency;
|
||||
data['amount'] = this.amount;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class SupportedInstalments {
|
||||
int? instalments;
|
||||
MinLimit? minLimit;
|
||||
MinLimit? maxLimit;
|
||||
|
||||
SupportedInstalments({this.instalments, this.minLimit, this.maxLimit});
|
||||
|
||||
SupportedInstalments.fromJson(Map<String, dynamic> json) {
|
||||
instalments = json['instalments'];
|
||||
minLimit = json['minLimit'] != null ? new MinLimit.fromJson(json['minLimit']) : null;
|
||||
maxLimit = json['maxLimit'] != null ? new MinLimit.fromJson(json['maxLimit']) : null;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['instalments'] = this.instalments;
|
||||
if (this.minLimit != null) {
|
||||
data['minLimit'] = this.minLimit!.toJson();
|
||||
}
|
||||
if (this.maxLimit != null) {
|
||||
data['maxLimit'] = this.maxLimit!.toJson();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue