toJsonLd method

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

Serialize SchemaUpdateAction to JSON-LD

Implementation

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