toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (contractId != null) {
json[r'contractId'] = contractId;
}
if (validFrom != null) {
json[r'validFrom'] = validFrom;
}
if (validTo != null) {
json[r'validTo'] = validTo;
}
if (mmNihii != null) {
json[r'mmNihii'] = mmNihii;
}
if (hcpId != null) {
json[r'hcpId'] = hcpId;
}
if (changeType != null) {
json[r'changeType'] = changeType;
}
if (parentContractId != null) {
json[r'parentContractId'] = parentContractId;
}
if (changedBy != null) {
json[r'changedBy'] = changedBy;
}
if (startOfContract != null) {
json[r'startOfContract'] = startOfContract;
}
if (startOfCoverage != null) {
json[r'startOfCoverage'] = startOfCoverage;
}
if (endOfContract != null) {
json[r'endOfContract'] = endOfContract;
}
if (endOfCoverage != null) {
json[r'endOfCoverage'] = endOfCoverage;
}
json[r'kine'] = kine;
json[r'gp'] = gp;
json[r'ptd'] = ptd;
json[r'nurse'] = nurse;
json[r'noKine'] = noKine;
json[r'noGp'] = noGp;
json[r'noNurse'] = noNurse;
if (unsubscriptionReasonId != null) {
json[r'unsubscriptionReasonId'] = unsubscriptionReasonId;
}
if (ptdStart != null) {
json[r'ptdStart'] = ptdStart;
}
if (ptdEnd != null) {
json[r'ptdEnd'] = ptdEnd;
}
if (ptdLastInvoiced != null) {
json[r'ptdLastInvoiced'] = ptdLastInvoiced;
}
if (startOfSuspension != null) {
json[r'startOfSuspension'] = startOfSuspension;
}
if (endOfSuspension != null) {
json[r'endOfSuspension'] = endOfSuspension;
}
if (suspensionReason != null) {
json[r'suspensionReason'] = suspensionReason;
}
if (suspensionSource != null) {
json[r'suspensionSource'] = suspensionSource;
}
json[r'forcedSuspension'] = forcedSuspension;
if (signatureType != null) {
json[r'signatureType'] = signatureType;
}
if (status != null) {
json[r'status'] = status;
}
json[r'options'] = options;
json[r'receipts'] = receipts;
if (encryptedSelf != null) {
json[r'encryptedSelf'] = encryptedSelf;
}
return json;
}