/* tslint:disable */
/* eslint-disable */
/**
 * CWMS Data API
 * CWMS REST API for Data Retrieval
 *
 * The version of the OpenAPI document: 2.3.2-2025.03.19
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
import type { Location } from './Location';
import {
    LocationFromJSON,
    LocationFromJSONTyped,
    LocationToJSON,
} from './Location';

/**
 * 
 * @export
 * @interface WaterSupplyPump
 */
export interface WaterSupplyPump {
    /**
     * 
     * @type {Location}
     * @memberof WaterSupplyPump
     */
    pumpLocation: Location;
    /**
     * 
     * @type {string}
     * @memberof WaterSupplyPump
     */
    pumpType: WaterSupplyPumpPumpTypeEnum;
}


/**
 * @export
 */
export const WaterSupplyPumpPumpTypeEnum = {
    In: 'IN',
    Out: 'OUT',
    Below: 'BELOW'
} as const;
export type WaterSupplyPumpPumpTypeEnum = typeof WaterSupplyPumpPumpTypeEnum[keyof typeof WaterSupplyPumpPumpTypeEnum];


/**
 * Check if a given object implements the WaterSupplyPump interface.
 */
export function instanceOfWaterSupplyPump(value: object): boolean {
    if (!('pumpLocation' in value)) return false;
    if (!('pumpType' in value)) return false;
    return true;
}

export function WaterSupplyPumpFromJSON(json: any): WaterSupplyPump {
    return WaterSupplyPumpFromJSONTyped(json, false);
}

export function WaterSupplyPumpFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaterSupplyPump {
    if (json == null) {
        return json;
    }
    return {
        
        'pumpLocation': LocationFromJSON(json['pumpLocation']),
        'pumpType': json['pumpType'],
    };
}

export function WaterSupplyPumpToJSON(value?: WaterSupplyPump | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'pumpLocation': LocationToJSON(value['pumpLocation']),
        'pumpType': value['pumpType'],
    };
}

