toJsonLd method
Serialize SchemaRole to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Role',
'endDate': convertToJsonLd(endDate, [String]),
'namedPosition': convertToJsonLd(namedPosition, [String]),
'roleName': convertToJsonLd(roleName, [String]),
'startDate': convertToJsonLd(startDate, [String]),
});