toJsonLd method

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

Serialize SchemaCollection to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Collection',
      'collectionSize': convertToJsonLd(collectionSize, [int]),
    });