toJsonLd method
Serialize SchemaProperty to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Property',
'domainIncludes': convertToJsonLd(domainIncludes, [SchemaClass]),
'inverseOf': convertToJsonLd(inverseOf, [SchemaProperty]),
'rangeIncludes': convertToJsonLd(rangeIncludes, [SchemaClass]),
'supersededBy': convertToJsonLd(
supersededBy, [SchemaClass, SchemaEnumeration, SchemaProperty]),
});