UNPKG

cwmsjs

Version:

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

96 lines (87 loc) 2.05 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 { mapValues } from '../runtime'; /** * * @export * @interface Blob */ export interface Blob { /** * Owning office of object. * @type {string} * @memberof Blob */ officeId: string; /** * * @type {string} * @memberof Blob */ id: string; /** * * @type {string} * @memberof Blob */ description?: string; /** * * @type {string} * @memberof Blob */ mediaTypeId?: string; /** * * @type {string} * @memberof Blob */ value: string; } /** * Check if a given object implements the Blob interface. */ export function instanceOfBlob(value: object): boolean { if (!('officeId' in value)) return false; if (!('id' in value)) return false; if (!('value' in value)) return false; return true; } export function BlobFromJSON(json: any): Blob { return BlobFromJSONTyped(json, false); } export function BlobFromJSONTyped(json: any, ignoreDiscriminator: boolean): Blob { if (json == null) { return json; } return { 'officeId': json['office-id'], 'id': json['id'], 'description': json['description'] == null ? undefined : json['description'], 'mediaTypeId': json['media-type-id'] == null ? undefined : json['media-type-id'], 'value': json['value'], }; } export function BlobToJSON(value?: Blob | null): any { if (value == null) { return value; } return { 'office-id': value['officeId'], 'id': value['id'], 'description': value['description'], 'media-type-id': value['mediaTypeId'], 'value': value['value'], }; }