toJsonLd method
Serialize SchemaSoftwareSourceCode to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'SoftwareSourceCode',
'codeRepository': convertToJsonLd(codeRepository, [String]),
'codeSampleType': convertToJsonLd(codeSampleType, [String]),
'programmingLanguage': convertToJsonLd(
programmingLanguage, [SchemaComputerLanguage, String]),
'runtime': convertToJsonLd(runtime, [String]),
'runtimePlatform':
convertToJsonLd(runtimePlatform, [SchemaRuntimePlatform, String]),
'sampleType': convertToJsonLd(sampleType, [String]),
'targetProduct':
convertToJsonLd(targetProduct, [SchemaSoftwareApplication]),
});