cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
72 lines (63 loc) • 1.69 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 2.4.0-2026.3.16
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import {
StandardTextId,
StandardTextIdFromJSON,
StandardTextIdFromJSONTyped,
StandardTextIdToJSON,
} from './StandardTextId';
/**
*
* @export
* @interface StandardTextValue
*/
export interface StandardTextValue {
/**
*
* @type {StandardTextId}
* @memberof StandardTextValue
*/
id?: StandardTextId;
/**
*
* @type {string}
* @memberof StandardTextValue
*/
standardText?: string;
}
export function StandardTextValueFromJSON(json: any): StandardTextValue {
return StandardTextValueFromJSONTyped(json, false);
}
export function StandardTextValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): StandardTextValue {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : StandardTextIdFromJSON(json['id']),
'standardText': !exists(json, 'standard-text') ? undefined : json['standard-text'],
};
}
export function StandardTextValueToJSON(value?: StandardTextValue | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': StandardTextIdToJSON(value.id),
'standard-text': value.standardText,
};
}