encode static method
Implementation
static Map<String, dynamic> encode(DecryptedMedicalHouseContract value) {
Map<String, dynamic> entityAsMap = {
"contractId" : value.contractId,
"validFrom" : value.validFrom,
"validTo" : value.validTo,
"mmNihii" : value.mmNihii,
"hcpId" : value.hcpId,
"changeType" : value.changeType == null ? null : ContractChangeType.encode(value.changeType!),
"parentContractId" : value.parentContractId,
"changedBy" : value.changedBy,
"startOfContract" : value.startOfContract,
"startOfCoverage" : value.startOfCoverage,
"endOfContract" : value.endOfContract,
"endOfCoverage" : value.endOfCoverage,
"kine" : value.kine,
"gp" : value.gp,
"ptd" : value.ptd,
"nurse" : value.nurse,
"noKine" : value.noKine,
"noGp" : value.noGp,
"noNurse" : value.noNurse,
"unsubscriptionReasonId" : value.unsubscriptionReasonId,
"ptdStart" : value.ptdStart,
"ptdEnd" : value.ptdEnd,
"ptdLastInvoiced" : value.ptdLastInvoiced,
"startOfSuspension" : value.startOfSuspension,
"endOfSuspension" : value.endOfSuspension,
"suspensionReason" : value.suspensionReason == null ? null : SuspensionReason.encode(value.suspensionReason!),
"suspensionSource" : value.suspensionSource,
"forcedSuspension" : value.forcedSuspension,
"signatureType" : value.signatureType == null ? null : MhcSignatureType.encode(value.signatureType!),
"status" : value.status,
"options" : value.options.map((k0, v0) => MapEntry(k0, v0)),
"receipts" : value.receipts.map((k0, v0) => MapEntry(k0, v0)),
"encryptedSelf" : value.encryptedSelf
};
return entityAsMap;
}