cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
69 lines (60 loc) • 1.37 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 Alias
*/
export interface Alias {
/**
*
* @type {string}
* @memberof Alias
*/
name?: string;
/**
*
* @type {string}
* @memberof Alias
*/
value?: string;
}
/**
* Check if a given object implements the Alias interface.
*/
export function instanceOfAlias(value: object): boolean {
return true;
}
export function AliasFromJSON(json: any): Alias {
return AliasFromJSONTyped(json, false);
}
export function AliasFromJSONTyped(json: any, ignoreDiscriminator: boolean): Alias {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'value': json['value'] == null ? undefined : json['value'],
};
}
export function AliasToJSON(value?: Alias | null): any {
if (value == null) {
return value;
}
return {
'name': value['name'],
'value': value['value'],
};
}