/* 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 VariantsQueryValidationError
 */
export interface VariantsQueryValidationError {
    /**
     * 
     * @type {Array<string>}
     * @memberof VariantsQueryValidationError
     */
    q: Array<string>;
}

/**
 * Check if a given object implements the VariantsQueryValidationError interface.
 */
export function instanceOfVariantsQueryValidationError(value: object): value is VariantsQueryValidationError {
    if (!('q' in value) || value['q'] === undefined) return false;
    return true;
}

export function VariantsQueryValidationErrorFromJSON(json: any): VariantsQueryValidationError {
    return VariantsQueryValidationErrorFromJSONTyped(json, false);
}

export function VariantsQueryValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): VariantsQueryValidationError {
    if (json == null) {
        return json;
    }
    return {
        
        'q': json['q'],
    };
}

export function VariantsQueryValidationErrorToJSON(json: any): VariantsQueryValidationError {
    return VariantsQueryValidationErrorToJSONTyped(json, false);
}

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

    return {
        
        'q': value['q'],
    };
}

