/* 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: 5.4.10
 * 
 *
 * 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.js';
/**
 * 
 * @export
 * @interface VariantPrices
 */
export interface VariantPrices {
    /**
     * 
     * @type {string}
     * @memberof VariantPrices
     */
    tcgplayer: string;
    /**
     * 
     * @type {string}
     * @memberof VariantPrices
     */
    cardkingdom: string;
    /**
     * 
     * @type {string}
     * @memberof VariantPrices
     */
    cardmarket: string;
}

/**
 * Check if a given object implements the VariantPrices interface.
 */
export function instanceOfVariantPrices(value: object): value is VariantPrices {
    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 VariantPricesFromJSON(json: any): VariantPrices {
    return VariantPricesFromJSONTyped(json, false);
}

export function VariantPricesFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantPrices {
    if (json == null) {
        return json;
    }
    return {
        
        'tcgplayer': json['tcgplayer'],
        'cardkingdom': json['cardkingdom'],
        'cardmarket': json['cardmarket'],
    };
}

export function VariantPricesToJSON(json: any): VariantPrices {
    return VariantPricesToJSONTyped(json, false);
}

export function VariantPricesToJSONTyped(value?: VariantPrices | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'tcgplayer': value['tcgplayer'],
        'cardkingdom': value['cardkingdom'],
        'cardmarket': value['cardmarket'],
    };
}

