@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
44 lines • 1.32 kB
JavaScript
/* 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.
*/
/**
* Check if a given object implements the VariantsQueryValidationError interface.
*/
export function instanceOfVariantsQueryValidationError(value) {
if (!('q' in value) || value['q'] === undefined)
return false;
return true;
}
export function VariantsQueryValidationErrorFromJSON(json) {
return VariantsQueryValidationErrorFromJSONTyped(json, false);
}
export function VariantsQueryValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'q': json['q'],
};
}
export function VariantsQueryValidationErrorToJSON(json) {
return VariantsQueryValidationErrorToJSONTyped(json, false);
}
export function VariantsQueryValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'q': value['q'],
};
}
//# sourceMappingURL=VariantsQueryValidationError.js.map