@space-cow-media/spellbook-client
Version:
An Open Api generated client for the Commander Spellbook backend REST API.
56 lines (47 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: 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.
*/
/**
* * `clockwise` - Clockwise
* * `counterclockwise` - Counterclockwise
* * `flip` - Flip
* @export
* @enum {string}
*/
export enum LayoutRotationEnum {
Clockwise = 'clockwise',
Counterclockwise = 'counterclockwise',
Flip = 'flip'
}
export function instanceOfLayoutRotationEnum(value: any): boolean {
for (const key in LayoutRotationEnum) {
if (Object.prototype.hasOwnProperty.call(LayoutRotationEnum, key)) {
if (LayoutRotationEnum[key as keyof typeof LayoutRotationEnum] === value) {
return true;
}
}
}
return false;
}
export function LayoutRotationEnumFromJSON(json: any): LayoutRotationEnum {
return LayoutRotationEnumFromJSONTyped(json, false);
}
export function LayoutRotationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): LayoutRotationEnum {
return json as LayoutRotationEnum;
}
export function LayoutRotationEnumToJSON(value?: LayoutRotationEnum | null): any {
return value as any;
}
export function LayoutRotationEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): LayoutRotationEnum {
return value as LayoutRotationEnum;
}