cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
57 lines (56 loc) • 2.15 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.VerticalDatumInfoToJSON = exports.VerticalDatumInfoFromJSONTyped = exports.VerticalDatumInfoFromJSON = exports.instanceOfVerticalDatumInfo = void 0;
const Offset_1 = require("./Offset");
/**
* Check if a given object implements the VerticalDatumInfo interface.
*/
function instanceOfVerticalDatumInfo(value) {
return true;
}
exports.instanceOfVerticalDatumInfo = instanceOfVerticalDatumInfo;
function VerticalDatumInfoFromJSON(json) {
return VerticalDatumInfoFromJSONTyped(json, false);
}
exports.VerticalDatumInfoFromJSON = VerticalDatumInfoFromJSON;
function VerticalDatumInfoFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'office': json['office'] == null ? undefined : json['office'],
'unit': json['unit'] == null ? undefined : json['unit'],
'location': json['location'] == null ? undefined : json['location'],
'nativeDatum': json['native-datum'] == null ? undefined : json['native-datum'],
'elevation': json['elevation'] == null ? undefined : json['elevation'],
'offsets': json['offsets'] == null ? undefined : (json['offsets'].map(Offset_1.OffsetFromJSON)),
};
}
exports.VerticalDatumInfoFromJSONTyped = VerticalDatumInfoFromJSONTyped;
function VerticalDatumInfoToJSON(value) {
if (value == null) {
return value;
}
return {
'office': value['office'],
'unit': value['unit'],
'location': value['location'],
'native-datum': value['nativeDatum'],
'elevation': value['elevation'],
'offsets': value['offsets'] == null ? undefined : (value['offsets'].map(Offset_1.OffsetToJSON)),
};
}
exports.VerticalDatumInfoToJSON = VerticalDatumInfoToJSON;