toJsonLd method
Serialize SchemaVideoGame to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'VideoGame',
'actor': convertToJsonLd(actor, [SchemaPerformingGroup, SchemaPerson]),
'actors': convertToJsonLd(actors, [SchemaPerson]),
'cheatCode': convertToJsonLd(cheatCode, [SchemaCreativeWork]),
'director': convertToJsonLd(director, [SchemaPerson]),
'directors': convertToJsonLd(directors, [SchemaPerson]),
'gameEdition': convertToJsonLd(gameEdition, [String]),
'gamePlatform': convertToJsonLd(gamePlatform, [String, SchemaThing]),
'gameServer': convertToJsonLd(gameServer, [SchemaGameServer]),
'gameTip': convertToJsonLd(gameTip, [SchemaCreativeWork]),
'musicBy': convertToJsonLd(musicBy, [SchemaMusicGroup, SchemaPerson]),
'playMode': convertToJsonLd(playMode, [SchemaGamePlayMode]),
'trailer': convertToJsonLd(trailer, [SchemaVideoObject]),
'applicationCategory': convertToJsonLd(applicationCategory, [String]),
'applicationSubCategory':
convertToJsonLd(applicationSubCategory, [String]),
'applicationSuite': convertToJsonLd(applicationSuite, [String]),
'availableOnDevice': convertToJsonLd(availableOnDevice, [String]),
'countriesNotSupported':
convertToJsonLd(countriesNotSupported, [String]),
'countriesSupported': convertToJsonLd(countriesSupported, [String]),
'device': convertToJsonLd(device, [String]),
'downloadUrl': convertToJsonLd(downloadUrl, [String]),
'featureList': convertToJsonLd(featureList, [String]),
'fileSize': convertToJsonLd(fileSize, [String]),
'installUrl': convertToJsonLd(installUrl, [String]),
'memoryRequirements': convertToJsonLd(memoryRequirements, [String]),
'operatingSystem':
convertToJsonLd(operatingSystem, [SchemaOperatingSystem, String]),
'permissions': convertToJsonLd(permissions, [String]),
'processorRequirements':
convertToJsonLd(processorRequirements, [String]),
'releaseNotes': convertToJsonLd(releaseNotes, [String]),
'requirements': convertToJsonLd(requirements, [String]),
'runtimePlatform':
convertToJsonLd(runtimePlatform, [SchemaRuntimePlatform, String]),
'screenshot': convertToJsonLd(screenshot, [SchemaImageObject, String]),
'softwareAddOn':
convertToJsonLd(softwareAddOn, [SchemaSoftwareApplication]),
'softwareHelp': convertToJsonLd(softwareHelp, [SchemaCreativeWork]),
'softwareRequirements': convertToJsonLd(
softwareRequirements, [SchemaSoftwareApplication, String]),
'softwareVersion': convertToJsonLd(softwareVersion, [String]),
'storageRequirements': convertToJsonLd(storageRequirements, [String]),
'supportingData': convertToJsonLd(supportingData, [SchemaDataFeed]),
});