toJsonLd method

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

Serialize SchemaEntryPoint to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'EntryPoint',
      'actionApplication':
          convertToJsonLd(actionApplication, [SchemaSoftwareApplication]),
      'actionPlatform': convertToJsonLd(
          actionPlatform, [SchemaDigitalPlatformEnumeration, String]),
      'application':
          convertToJsonLd(application, [SchemaSoftwareApplication]),
      'contentType': convertToJsonLd(contentType, [String]),
      'encodingType': convertToJsonLd(encodingType, [String]),
      'httpMethod': convertToJsonLd(httpMethod, [String]),
      'urlTemplate': convertToJsonLd(urlTemplate, [String]),
    });