toJsonLd method
Serialize SchemaArticle to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Article',
'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]),
});