toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaPalliativeProcedure to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'PalliativeProcedure',
      'contraindication': convertToJsonLd(
          contraindication, [SchemaMedicalContraindication, String]),
      'duplicateTherapy':
          convertToJsonLd(duplicateTherapy, [SchemaMedicalTherapy]),
      'seriousAdverseOutcome':
          convertToJsonLd(seriousAdverseOutcome, [SchemaMedicalEntity]),
      'adverseOutcome':
          convertToJsonLd(adverseOutcome, [SchemaMedicalEntity]),
      'doseSchedule': convertToJsonLd(doseSchedule, [SchemaDoseSchedule]),
      'drug': convertToJsonLd(drug, [SchemaDrug]),
    });