UNPKG

cwmsjs

Version:

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

44 lines (43 loc) 1.37 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. */ import { CwmsIdFromJSON, CwmsIdToJSON, } from './CwmsId'; /** * Check if a given object implements the VirtualOutletRecord interface. */ export function instanceOfVirtualOutletRecord(value) { if (!('outletId' in value)) return false; return true; } export function VirtualOutletRecordFromJSON(json) { return VirtualOutletRecordFromJSONTyped(json, false); } export function VirtualOutletRecordFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'outletId': CwmsIdFromJSON(json['outlet-id']), 'downstreamOutletIds': json['downstream-outlet-ids'] == null ? undefined : (json['downstream-outlet-ids'].map(CwmsIdFromJSON)), }; } export function VirtualOutletRecordToJSON(value) { if (value == null) { return value; } return { 'outlet-id': CwmsIdToJSON(value['outletId']), 'downstream-outlet-ids': value['downstreamOutletIds'] == null ? undefined : (value['downstreamOutletIds'].map(CwmsIdToJSON)), }; }