toJsonLd method
Serialize SchemaNerve to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Nerve',
'branch': convertToJsonLd(branch, [SchemaAnatomicalStructure]),
'nerveMotor': convertToJsonLd(nerveMotor, [SchemaMuscle]),
'sensoryUnit': convertToJsonLd(
sensoryUnit, [SchemaAnatomicalStructure, SchemaSuperficialAnatomy]),
'sourcedFrom': convertToJsonLd(sourcedFrom, [SchemaBrainStructure]),
});