/* 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.2.2
 * 
 *
 * 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;
}

