EncryptedInvoicingCode.fromJSON constructor
EncryptedInvoicingCode.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory EncryptedInvoicingCode.fromJSON(Map<String, dynamic> data) {
return EncryptedInvoicingCode(
units: (data["units"] as int?),
side: (data["side"] as int?),
timeOfDay: (data["timeOfDay"] as int?),
eidReadingHour: (data["eidReadingHour"] as int?),
override3rdPayerCode: (data["override3rdPayerCode"] as int?),
transplantationCode: (data["transplantationCode"] as int?),
prescriberNorm: (data["prescriberNorm"] as int?),
percentNorm: (data["percentNorm"] as int?),
derogationMaxNumber: (data["derogationMaxNumber"] as int?),
locationService: (data["locationService"] as int?),
insuranceJustification: (data["insuranceJustification"] as int?),
cancelPatientInterventionReason: (data["cancelPatientInterventionReason"] as int?),
id: (data["id"] as String?),
dateCode: (data["dateCode"] as int?),
logicalId: (data["logicalId"] as String?),
label: (data["label"] as String?),
userId: (data["userId"] as String?),
contactId: (data["contactId"] as String?),
serviceId: (data["serviceId"] as String?),
tarificationId: (data["tarificationId"] as String?),
code: (data["code"] as String?),
paymentType: data["paymentType"] == null ? null : PaymentType.fromJSON(data["paymentType"]),
paid: (data["paid"] as num?)?.toDouble(),
totalAmount: (data["totalAmount"] as num?)?.toDouble(),
reimbursement: (data["reimbursement"] as num?)?.toDouble(),
patientIntervention: (data["patientIntervention"] as num?)?.toDouble(),
doctorSupplement: (data["doctorSupplement"] as num?)?.toDouble(),
conventionAmount: (data["conventionAmount"] as num?)?.toDouble(),
vat: (data["vat"] as num?)?.toDouble(),
error: (data["error"] as String?),
contract: (data["contract"] as String?),
contractDate: (data["contractDate"] as int?),
eidReadingValue: (data["eidReadingValue"] as String?),
override3rdPayerReason: (data["override3rdPayerReason"] as String?),
prescriberNihii: (data["prescriberNihii"] as String?),
relatedCode: (data["relatedCode"] as String?),
prescriptionDate: (data["prescriptionDate"] as int?),
prescriberSsin: (data["prescriberSsin"] as String?),
prescriberLastName: (data["prescriberLastName"] as String?),
prescriberFirstName: (data["prescriberFirstName"] as String?),
prescriberCdHcParty: (data["prescriberCdHcParty"] as String?),
locationNihii: (data["locationNihii"] as String?),
locationCdHcParty: (data["locationCdHcParty"] as String?),
admissionDate: (data["admissionDate"] as int?),
canceled: (data["canceled"] as bool?),
accepted: (data["accepted"] as bool?),
pending: (data["pending"] as bool?),
resent: (data["resent"] as bool?),
archived: (data["archived"] as bool?),
lost: (data["lost"] as bool?),
status: (data["status"] as int?),
encryptedSelf: (data["encryptedSelf"] as Base64String?)
);
}