toJsonLd method
Serialize SchemaVideoObject to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'VideoObject',
'actor': convertToJsonLd(
actor, (v) => v is SchemaPerformingGroup || v is SchemaPerson),
'actors': convertToJsonLd(actors),
'caption': convertToJsonLd(
caption, (v) => v is SchemaMediaObject || v is String),
'director': convertToJsonLd(director),
'directors': convertToJsonLd(directors),
'embeddedTextCaption': convertToJsonLd(embeddedTextCaption),
'musicBy': convertToJsonLd(
musicBy, (v) => v is SchemaMusicGroup || v is SchemaPerson),
'transcript': convertToJsonLd(transcript),
'videoFrameSize': convertToJsonLd(videoFrameSize),
'videoQuality': convertToJsonLd(videoQuality),
});