UNPKG

@space-cow-media/spellbook-client

Version:

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

67 lines (56 loc) 1.77 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 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'], }; }