toJsonLd method

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

Serialize SchemaReviewNewsArticle to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'ReviewNewsArticle',
      'dateline': convertToJsonLd(dateline, [String]),
      'printColumn': convertToJsonLd(printColumn, [String]),
      'printEdition': convertToJsonLd(printEdition, [String]),
      'printPage': convertToJsonLd(printPage, [String]),
      'printSection': convertToJsonLd(printSection, [String]),
      'articleBody': convertToJsonLd(articleBody, [String]),
      'articleSection': convertToJsonLd(articleSection, [String]),
      'backstory': convertToJsonLd(backstory, [SchemaCreativeWork, String]),
      'pageEnd': convertToJsonLd(pageEnd, [String, int]),
      'pageStart': convertToJsonLd(pageStart, [String, int]),
      'pagination': convertToJsonLd(pagination, [String]),
      'speakable':
          convertToJsonLd(speakable, [SchemaSpeakableSpecification, String]),
    });