toJsonLd method

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

Serialize SchemaAudioObject to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'AudioObject',
      'caption': convertToJsonLd(
          caption, (v) => v is SchemaMediaObject || v is String),
      'embeddedTextCaption': convertToJsonLd(embeddedTextCaption),
      'transcript': convertToJsonLd(transcript),
    });