toJsonLd method

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

Serialize SchemaReplaceAction to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'ReplaceAction',
      'replacee': convertToJsonLd(replacee, [SchemaThing]),
      'replacer': convertToJsonLd(replacer, [SchemaThing]),
    });