@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
62 lines (53 loc) • 1.54 kB
text/typescript
/* 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.
*/
/**
* * `H` - Hand
* * `B` - Battlefield
* * `C` - Command Zone
* * `E` - Exile
* * `G` - Graveyard
* * `L` - Library
* @export
* @enum {string}
*/
export enum ZoneLocationsEnum {
H = 'H',
B = 'B',
C = 'C',
E = 'E',
G = 'G',
L = 'L'
}
export function instanceOfZoneLocationsEnum(value: any): boolean {
for (const key in ZoneLocationsEnum) {
if (Object.prototype.hasOwnProperty.call(ZoneLocationsEnum, key)) {
if (ZoneLocationsEnum[key as keyof typeof ZoneLocationsEnum] === value) {
return true;
}
}
}
return false;
}
export function ZoneLocationsEnumFromJSON(json: any): ZoneLocationsEnum {
return ZoneLocationsEnumFromJSONTyped(json, false);
}
export function ZoneLocationsEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ZoneLocationsEnum {
return json as ZoneLocationsEnum;
}
export function ZoneLocationsEnumToJSON(value?: ZoneLocationsEnum | null): any {
return value as any;
}
export function ZoneLocationsEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): ZoneLocationsEnum {
return value as ZoneLocationsEnum;
}