toJsonLd method
Serialize SchemaBioChemEntity to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'BioChemEntity',
'associatedDisease': convertToJsonLd(associatedDisease,
[SchemaMedicalCondition, SchemaPropertyValue, String]),
'bioChemInteraction':
convertToJsonLd(bioChemInteraction, [SchemaBioChemEntity]),
'bioChemSimilarity':
convertToJsonLd(bioChemSimilarity, [SchemaBioChemEntity]),
'biologicalRole': convertToJsonLd(biologicalRole, [SchemaDefinedTerm]),
'funding': convertToJsonLd(funding, [SchemaGrant]),
'hasBioChemEntityPart':
convertToJsonLd(hasBioChemEntityPart, [SchemaBioChemEntity]),
'hasMolecularFunction': convertToJsonLd(hasMolecularFunction,
[SchemaDefinedTerm, SchemaPropertyValue, String]),
'hasRepresentation':
convertToJsonLd(hasRepresentation, [SchemaPropertyValue, String]),
'isEncodedByBioChemEntity':
convertToJsonLd(isEncodedByBioChemEntity, [SchemaGene]),
'isInvolvedInBiologicalProcess': convertToJsonLd(
isInvolvedInBiologicalProcess,
[SchemaDefinedTerm, SchemaPropertyValue, String]),
'isLocatedInSubcellularLocation': convertToJsonLd(
isLocatedInSubcellularLocation,
[SchemaDefinedTerm, SchemaPropertyValue, String]),
'isPartOfBioChemEntity':
convertToJsonLd(isPartOfBioChemEntity, [SchemaBioChemEntity]),
'taxonomicRange': convertToJsonLd(
taxonomicRange, [SchemaDefinedTerm, String, SchemaTaxon]),
});