toJsonLd method

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

Serialize SchemaSoftwareApplication to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'SoftwareApplication',
      'applicationCategory': convertToJsonLd(applicationCategory),
      'applicationSubCategory': convertToJsonLd(applicationSubCategory),
      'applicationSuite': convertToJsonLd(applicationSuite),
      'availableOnDevice': convertToJsonLd(availableOnDevice),
      'countriesNotSupported': convertToJsonLd(countriesNotSupported),
      'countriesSupported': convertToJsonLd(countriesSupported),
      'device': convertToJsonLd(device),
      'downloadUrl': convertToJsonLd(downloadUrl),
      'featureList': convertToJsonLd(featureList),
      'fileSize': convertToJsonLd(fileSize),
      'installUrl': convertToJsonLd(installUrl),
      'memoryRequirements': convertToJsonLd(memoryRequirements),
      'operatingSystem': convertToJsonLd(
          operatingSystem, (v) => v is SchemaOperatingSystem || v is String),
      'permissions': convertToJsonLd(permissions),
      'processorRequirements': convertToJsonLd(processorRequirements),
      'releaseNotes': convertToJsonLd(releaseNotes),
      'requirements': convertToJsonLd(requirements),
      'runtimePlatform': convertToJsonLd(
          runtimePlatform, (v) => v is SchemaRuntimePlatform || v is String),
      'screenshot': convertToJsonLd(
          screenshot, (v) => v is SchemaImageObject || v is String),
      'softwareAddOn': convertToJsonLd(softwareAddOn),
      'softwareHelp': convertToJsonLd(softwareHelp),
      'softwareRequirements': convertToJsonLd(softwareRequirements,
          (v) => v is SchemaSoftwareApplication || v is String),
      'softwareVersion': convertToJsonLd(softwareVersion),
      'storageRequirements': convertToJsonLd(storageRequirements),
      'supportingData': convertToJsonLd(supportingData),
    });