UNPKG

cwmsjs

Version:

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

44 lines (43 loc) 1.36 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 { ProjectFromJSON, ProjectToJSON, } from './Project'; /** * Check if a given object implements the Projects interface. */ export function instanceOfProjects(value) { return true; } export function ProjectsFromJSON(json) { return ProjectsFromJSONTyped(json, false); } export function ProjectsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'nextPage': json['next-page'] == null ? undefined : json['next-page'], 'page': json['page'] == null ? undefined : json['page'], 'pageSize': json['page-size'] == null ? undefined : json['page-size'], 'projects': json['projects'] == null ? undefined : (json['projects'].map(ProjectFromJSON)), 'total': json['total'] == null ? undefined : json['total'], }; } export function ProjectsToJSON(value) { if (value == null) { return value; } return { 'projects': value['projects'] == null ? undefined : (value['projects'].map(ProjectToJSON)), }; }