cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
69 lines (60 loc) • 1.5 kB
text/typescript
/* 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';
/**
*
* @export
* @interface PoolNameType
*/
export interface PoolNameType {
/**
*
* @type {string}
* @memberof PoolNameType
*/
officeId?: string;
/**
*
* @type {string}
* @memberof PoolNameType
*/
poolName?: string;
}
/**
* Check if a given object implements the PoolNameType interface.
*/
export function instanceOfPoolNameType(value: object): boolean {
return true;
}
export function PoolNameTypeFromJSON(json: any): PoolNameType {
return PoolNameTypeFromJSONTyped(json, false);
}
export function PoolNameTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PoolNameType {
if (json == null) {
return json;
}
return {
'officeId': json['officeId'] == null ? undefined : json['officeId'],
'poolName': json['poolName'] == null ? undefined : json['poolName'],
};
}
export function PoolNameTypeToJSON(value?: PoolNameType | null): any {
if (value == null) {
return value;
}
return {
'officeId': value['officeId'],
'poolName': value['poolName'],
};
}