toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaLinkRole to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'LinkRole',
      'inLanguage': convertToJsonLd(inLanguage, [SchemaLanguage, String]),
      'linkRelationship': convertToJsonLd(linkRelationship, [String]),
    });