toJsonLd method
Serialize SchemaGene to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Gene',
'alternativeOf': convertToJsonLd(alternativeOf, [SchemaGene]),
'encodesBioChemEntity':
convertToJsonLd(encodesBioChemEntity, [SchemaBioChemEntity]),
'expressedIn': convertToJsonLd(expressedIn, [
SchemaAnatomicalStructure,
SchemaAnatomicalSystem,
SchemaBioChemEntity,
SchemaDefinedTerm
]),
'hasBioPolymerSequence':
convertToJsonLd(hasBioPolymerSequence, [String]),
});