cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
73 lines (65 loc) • 1.58 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';
/**
* Atom link for pagination to the next page of RSS items
* @export
* @interface AtomLink
*/
export interface AtomLink {
/**
*
* @type {string}
* @memberof AtomLink
*/
rel?: string;
/**
*
* @type {string}
* @memberof AtomLink
*/
href?: string;
/**
*
* @type {string}
* @memberof AtomLink
*/
type?: string;
}
export function AtomLinkFromJSON(json: any): AtomLink {
return AtomLinkFromJSONTyped(json, false);
}
export function AtomLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): AtomLink {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'rel': !exists(json, 'rel') ? undefined : json['rel'],
'href': !exists(json, 'href') ? undefined : json['href'],
'type': !exists(json, 'type') ? undefined : json['type'],
};
}
export function AtomLinkToJSON(value?: AtomLink | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'rel': value.rel,
'href': value.href,
'type': value.type,
};
}