toJsonLd method
Serialize SchemaArticle to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Article',
'articleBody': convertToJsonLd(articleBody),
'articleSection': convertToJsonLd(articleSection),
'backstory': convertToJsonLd(
backstory, (v) => v is SchemaCreativeWork || v is String),
'pageEnd': convertToJsonLd(pageEnd, (v) => v is String || v is int),
'pageStart': convertToJsonLd(pageStart, (v) => v is String || v is int),
'pagination': convertToJsonLd(pagination),
'speakable': convertToJsonLd(
speakable, (v) => v is SchemaSpeakableSpecification || v is String),
});