toJsonLd method

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

Serialize SchemaBrand to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Brand',
      'aggregateRating':
          convertToJsonLd(aggregateRating, [SchemaAggregateRating]),
      'logo': convertToJsonLd(logo, [SchemaImageObject, String]),
      'review': convertToJsonLd(review, [SchemaReview]),
      'slogan': convertToJsonLd(slogan, [String]),
    });