UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

53 lines (52 loc) 2.03 kB
/* 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. */ /** * Check if a given object implements the BinaryTimeSeriesRow interface. */ export function instanceOfBinaryTimeSeriesRow(value) { return true; } export function BinaryTimeSeriesRowFromJSON(json) { return BinaryTimeSeriesRowFromJSONTyped(json, false); } export function BinaryTimeSeriesRowFromJSONTyped(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'])), 'mediaType': json['media-type'] == null ? undefined : json['media-type'], 'filename': json['filename'] == null ? undefined : json['filename'], 'destFlag': json['dest-flag'] == null ? undefined : json['dest-flag'], 'binaryValue': json['binary-value'] == null ? undefined : json['binary-value'], 'valueUrl': json['value-url'] == null ? undefined : json['value-url'], 'qualityCode': json['quality-code'] == null ? undefined : json['quality-code'], }; } export function BinaryTimeSeriesRowToJSON(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()), 'media-type': value['mediaType'], 'filename': value['filename'], 'dest-flag': value['destFlag'], 'binary-value': value['binaryValue'], 'value-url': value['valueUrl'], 'quality-code': value['qualityCode'], }; }