toJsonLd method

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

Serialize SchemaJoint to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Joint',
      'biomechnicalClass': convertToJsonLd(biomechnicalClass, [String]),
      'functionalClass':
          convertToJsonLd(functionalClass, [SchemaMedicalEntity, String]),
      'structuralClass': convertToJsonLd(structuralClass, [String]),
    });