toJsonLd method

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

Serialize SchemaBroadcastService to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'BroadcastService',
      'area': convertToJsonLd(area, [SchemaPlace]),
      'broadcastAffiliateOf':
          convertToJsonLd(broadcastAffiliateOf, [SchemaOrganization]),
      'broadcastDisplayName': convertToJsonLd(broadcastDisplayName, [String]),
      'broadcastFrequency': convertToJsonLd(broadcastFrequency,
          [SchemaBroadcastFrequencySpecification, String]),
      'broadcastTimezone': convertToJsonLd(broadcastTimezone, [String]),
      'broadcaster': convertToJsonLd(broadcaster, [SchemaOrganization]),
      'callSign': convertToJsonLd(callSign, [String]),
      'hasBroadcastChannel':
          convertToJsonLd(hasBroadcastChannel, [SchemaBroadcastChannel]),
      'inLanguage': convertToJsonLd(inLanguage, [SchemaLanguage, String]),
      'parentService':
          convertToJsonLd(parentService, [SchemaBroadcastService]),
      'videoFormat': convertToJsonLd(videoFormat, [String]),
    });