cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
60 lines (59 loc) • 2.6 kB
JavaScript
;
/* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.RegularTextTimeSeriesRowToJSON = exports.RegularTextTimeSeriesRowFromJSONTyped = exports.RegularTextTimeSeriesRowFromJSON = exports.instanceOfRegularTextTimeSeriesRow = void 0;
/**
* Check if a given object implements the RegularTextTimeSeriesRow interface.
*/
function instanceOfRegularTextTimeSeriesRow(value) {
return true;
}
exports.instanceOfRegularTextTimeSeriesRow = instanceOfRegularTextTimeSeriesRow;
function RegularTextTimeSeriesRowFromJSON(json) {
return RegularTextTimeSeriesRowFromJSONTyped(json, false);
}
exports.RegularTextTimeSeriesRowFromJSON = RegularTextTimeSeriesRowFromJSON;
function RegularTextTimeSeriesRowFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'dateTime': json['date-time'] == null ? undefined : (new Date(json['date-time'])),
'dataEntryDate': json['data-entry-date'] == null ? undefined : (new Date(json['data-entry-date'])),
'textValue': json['text-value'] == null ? undefined : json['text-value'],
'filename': json['filename'] == null ? undefined : json['filename'],
'mediaType': json['media-type'] == null ? undefined : json['media-type'],
'qualityCode': json['quality-code'] == null ? undefined : json['quality-code'],
'destFlag': json['dest-flag'] == null ? undefined : json['dest-flag'],
'valueUrl': json['value-url'] == null ? undefined : json['value-url'],
};
}
exports.RegularTextTimeSeriesRowFromJSONTyped = RegularTextTimeSeriesRowFromJSONTyped;
function RegularTextTimeSeriesRowToJSON(value) {
if (value == null) {
return value;
}
return {
'date-time': value['dateTime'] == null ? undefined : ((value['dateTime']).toISOString()),
'data-entry-date': value['dataEntryDate'] == null ? undefined : ((value['dataEntryDate']).toISOString()),
'text-value': value['textValue'],
'filename': value['filename'],
'media-type': value['mediaType'],
'quality-code': value['qualityCode'],
'dest-flag': value['destFlag'],
'value-url': value['valueUrl'],
};
}
exports.RegularTextTimeSeriesRowToJSON = RegularTextTimeSeriesRowToJSON;