toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (compoundPrescription != null) {
    json[r'compoundPrescription'] = compoundPrescription;
  }
  if (substanceProduct != null) {
    json[r'substanceProduct'] = substanceProduct;
  }
  if (medicinalProduct != null) {
    json[r'medicinalProduct'] = medicinalProduct;
  }
  if (numberOfPackages != null) {
    json[r'numberOfPackages'] = numberOfPackages;
  }
  if (batch != null) {
    json[r'batch'] = batch;
  }
  if (instructionForPatient != null) {
    json[r'instructionForPatient'] = instructionForPatient;
  }
  if (commentForDelivery != null) {
    json[r'commentForDelivery'] = commentForDelivery;
  }
  if (drugRoute != null) {
    json[r'drugRoute'] = drugRoute;
  }
  if (temporality != null) {
    json[r'temporality'] = temporality;
  }
  if (frequency != null) {
    json[r'frequency'] = frequency;
  }
  if (reimbursementReason != null) {
    json[r'reimbursementReason'] = reimbursementReason;
  }
  if (substitutionAllowed != null) {
    json[r'substitutionAllowed'] = substitutionAllowed;
  }
  if (beginMoment != null) {
    json[r'beginMoment'] = beginMoment;
  }
  if (endMoment != null) {
    json[r'endMoment'] = endMoment;
  }
  if (deliveryMoment != null) {
    json[r'deliveryMoment'] = deliveryMoment;
  }
  if (endExecutionMoment != null) {
    json[r'endExecutionMoment'] = endExecutionMoment;
  }
  if (duration != null) {
    json[r'duration'] = duration;
  }
  if (renewal != null) {
    json[r'renewal'] = renewal;
  }
  if (knownUsage != null) {
    json[r'knownUsage'] = knownUsage;
  }
  json[r'regimen'] = regimen;
  if (posology != null) {
    json[r'posology'] = posology;
  }
  json[r'agreements'] = agreements;
  if (medicationSchemeIdOnSafe != null) {
    json[r'medicationSchemeIdOnSafe'] = medicationSchemeIdOnSafe;
  }
  if (medicationSchemeSafeVersion != null) {
    json[r'medicationSchemeSafeVersion'] = medicationSchemeSafeVersion;
  }
  if (medicationSchemeTimeStampOnSafe != null) {
    json[r'medicationSchemeTimeStampOnSafe'] = medicationSchemeTimeStampOnSafe;
  }
  if (medicationSchemeDocumentId != null) {
    json[r'medicationSchemeDocumentId'] = medicationSchemeDocumentId;
  }
  if (safeIdName != null) {
    json[r'safeIdName'] = safeIdName;
  }
  if (idOnSafes != null) {
    json[r'idOnSafes'] = idOnSafes;
  }
  if (timestampOnSafe != null) {
    json[r'timestampOnSafe'] = timestampOnSafe;
  }
  if (changeValidated != null) {
    json[r'changeValidated'] = changeValidated;
  }
  if (newSafeMedication != null) {
    json[r'newSafeMedication'] = newSafeMedication;
  }
  if (medicationUse != null) {
    json[r'medicationUse'] = medicationUse;
  }
  if (beginCondition != null) {
    json[r'beginCondition'] = beginCondition;
  }
  if (endCondition != null) {
    json[r'endCondition'] = endCondition;
  }
  if (origin != null) {
    json[r'origin'] = origin;
  }
  if (medicationChanged != null) {
    json[r'medicationChanged'] = medicationChanged;
  }
  if (posologyChanged != null) {
    json[r'posologyChanged'] = posologyChanged;
  }
  json[r'suspension'] = suspension;
  if (prescriptionRID != null) {
    json[r'prescriptionRID'] = prescriptionRID;
  }
  if (status != null) {
    json[r'status'] = status;
  }
  return json;
}