toJsonLd method

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

Serialize SchemaAnatomicalSystem to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'AnatomicalSystem',
      'associatedPathophysiology':
          convertToJsonLd(associatedPathophysiology, [String]),
      'comprisedOf': convertToJsonLd(
          comprisedOf, [SchemaAnatomicalStructure, SchemaAnatomicalSystem]),
      'relatedCondition':
          convertToJsonLd(relatedCondition, [SchemaMedicalCondition]),
      'relatedStructure':
          convertToJsonLd(relatedStructure, [SchemaAnatomicalStructure]),
      'relatedTherapy':
          convertToJsonLd(relatedTherapy, [SchemaMedicalTherapy]),
    });