UNPKG

cwmsjs

Version:

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

43 lines (42 loc) 1.49 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'; import { LocationsWithProjectKindFromJSON, LocationsWithProjectKindToJSON, } from './LocationsWithProjectKind'; /** * Check if a given object implements the ProjectChildLocations interface. */ export function instanceOfProjectChildLocations(value) { return true; } export function ProjectChildLocationsFromJSON(json) { return ProjectChildLocationsFromJSONTyped(json, false); } export function ProjectChildLocationsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'projectId': json['project-id'] == null ? undefined : CwmsIdFromJSON(json['project-id']), 'locationsByKind': json['locations-by-kind'] == null ? undefined : (json['locations-by-kind'].map(LocationsWithProjectKindFromJSON)), }; } export function ProjectChildLocationsToJSON(value) { if (value == null) { return value; } return { 'project-id': CwmsIdToJSON(value['projectId']), 'locations-by-kind': value['locationsByKind'] == null ? undefined : (value['locationsByKind'].map(LocationsWithProjectKindToJSON)), }; }