UNPKG

@space-cow-media/spellbook-client

Version:

An Open Api generated client for the Commander Spellbook backend REST API.

63 lines (49 loc) 1.4 kB
# Card ## Properties Name | Type ------------ | ------------- `id` | number `name` | string `oracleId` | string `spoiler` | boolean `typeLine` | string `imageUriFrontPng` | string `imageUriFrontLarge` | string `imageUriFrontNormal` | string `imageUriFrontSmall` | string `imageUriFrontArtCrop` | string `imageUriBackPng` | string `imageUriBackLarge` | string `imageUriBackNormal` | string `imageUriBackSmall` | string `imageUriBackArtCrop` | string ## Example ```typescript import type { Card } from '' // TODO: Update the object below with actual values const example = { "id": null, "name": null, "oracleId": null, "spoiler": null, "typeLine": null, "imageUriFrontPng": null, "imageUriFrontLarge": null, "imageUriFrontNormal": null, "imageUriFrontSmall": null, "imageUriFrontArtCrop": null, "imageUriBackPng": null, "imageUriBackLarge": null, "imageUriBackNormal": null, "imageUriBackSmall": null, "imageUriBackArtCrop": null, } satisfies Card console.log(example) // Convert the instance to a JSON string const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object const exampleParsed = JSON.parse(exampleJSON) as Card console.log(exampleParsed) ``` [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)