toJsonLd method
Serialize SchemaMedicalCode to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'MedicalCode',
'codingSystem': convertToJsonLd(codingSystem),
'code': convertToJsonLd(code),
'funding': convertToJsonLd(funding),
'guideline': convertToJsonLd(guideline),
'legalStatus': convertToJsonLd(
legalStatus,
(v) =>
v is SchemaDrugLegalStatus ||
v is SchemaMedicalEnumeration ||
v is String),
'medicineSystem': convertToJsonLd(medicineSystem),
'recognizingAuthority': convertToJsonLd(recognizingAuthority),
'relevantSpecialty': convertToJsonLd(relevantSpecialty),
'study': convertToJsonLd(study),
});