/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


/**
 * 
 * @export
 */
export const HoldingType = {
    MUTUAL_FUND: 'MutualFund',
    STOCK: 'Stock',
    BOND: 'Bond',
    ETF: 'ETF',
    GIC: 'GIC',
    CASH: 'Cash',
    OTHER: 'Other',
    UNKNOWN: 'Unknown',
    unknown_default_open_api: '11184809'
} as const;
export type HoldingType = typeof HoldingType[keyof typeof HoldingType];


export function instanceOfHoldingType(value: any): boolean {
    for (const key in HoldingType) {
        if (Object.prototype.hasOwnProperty.call(HoldingType, key)) {
            if (HoldingType[key as keyof typeof HoldingType] === value) {
                return true;
            }
        }
    }
    return false;
}

export function HoldingTypeFromJSON(json: any): HoldingType {
    return HoldingTypeFromJSONTyped(json, false);
}

export function HoldingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): HoldingType {
    return json as HoldingType;
}

export function HoldingTypeToJSON(value?: HoldingType | null): any {
    return value as any;
}

export function HoldingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): HoldingType {
    return value as HoldingType;
}

