toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (startOfValidity != null) {
    json[r'startOfValidity'] = startOfValidity;
  }
  if (endOfValidity != null) {
    json[r'endOfValidity'] = endOfValidity;
  }
  if (predicate != null) {
    json[r'predicate'] = predicate;
  }
  if (totalAmount != null) {
    json[r'totalAmount'] = totalAmount;
  }
  if (reimbursement != null) {
    json[r'reimbursement'] = reimbursement;
  }
  if (patientIntervention != null) {
    json[r'patientIntervention'] = patientIntervention;
  }
  if (doctorSupplement != null) {
    json[r'doctorSupplement'] = doctorSupplement;
  }
  if (vat != null) {
    json[r'vat'] = vat;
  }
  json[r'label'] = label;
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}