UNPKG

@ringer-tel/ivy

Version:
75 lines (63 loc) 2.2 kB
/* tslint:disable */ /* eslint-disable */ /** * Ringer Business API * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions. * * The version of the OpenAPI document: 1.0.5 * Contact: support@ringer.tel * * 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'; import type { DeviceResponse } from './DeviceResponse'; import { DeviceResponseFromJSON, DeviceResponseFromJSONTyped, DeviceResponseToJSON, DeviceResponseToJSONTyped, } from './DeviceResponse'; /** * * @export * @interface DeviceListResponse */ export interface DeviceListResponse { /** * * @type {Array<DeviceResponse>} * @memberof DeviceListResponse */ devices: Array<DeviceResponse>; } /** * Check if a given object implements the DeviceListResponse interface. */ export function instanceOfDeviceListResponse(value: object): value is DeviceListResponse { if (!('devices' in value) || value['devices'] === undefined) return false; return true; } export function DeviceListResponseFromJSON(json: any): DeviceListResponse { return DeviceListResponseFromJSONTyped(json, false); } export function DeviceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceListResponse { if (json == null) { return json; } return { 'devices': ((json['devices'] as Array<any>).map(DeviceResponseFromJSON)), }; } export function DeviceListResponseToJSON(json: any): DeviceListResponse { return DeviceListResponseToJSONTyped(json, false); } export function DeviceListResponseToJSONTyped(value?: DeviceListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'devices': ((value['devices'] as Array<any>).map(DeviceResponseToJSON)), }; }