UNPKG

@space-cow-media/spellbook-client

Version:

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

85 lines (74 loc) 2.07 kB
/* tslint:disable */ /* eslint-disable */ /** * Commander Spellbook API * API for Commander Spellbook, the combo database engine for Magic: The Gathering * * The version of the OpenAPI document: 4.8.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface CardPrices */ export interface CardPrices { /** * * @type {string} * @memberof CardPrices */ tcgplayer: string; /** * * @type {string} * @memberof CardPrices */ cardkingdom: string; /** * * @type {string} * @memberof CardPrices */ cardmarket: string; } /** * Check if a given object implements the CardPrices interface. */ export function instanceOfCardPrices(value: object): value is CardPrices { if (!('tcgplayer' in value) || value['tcgplayer'] === undefined) return false; if (!('cardkingdom' in value) || value['cardkingdom'] === undefined) return false; if (!('cardmarket' in value) || value['cardmarket'] === undefined) return false; return true; } export function CardPricesFromJSON(json: any): CardPrices { return CardPricesFromJSONTyped(json, false); } export function CardPricesFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardPrices { if (json == null) { return json; } return { 'tcgplayer': json['tcgplayer'], 'cardkingdom': json['cardkingdom'], 'cardmarket': json['cardmarket'], }; } export function CardPricesToJSON(json: any): CardPrices { return CardPricesToJSONTyped(json, false); } export function CardPricesToJSONTyped(value?: CardPrices | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'tcgplayer': value['tcgplayer'], 'cardkingdom': value['cardkingdom'], 'cardmarket': value['cardmarket'], }; }