UNPKG

@ringer-tel/ivy

Version:
75 lines (63 loc) 2.32 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 { ExtensionResponse } from './ExtensionResponse'; import { ExtensionResponseFromJSON, ExtensionResponseFromJSONTyped, ExtensionResponseToJSON, ExtensionResponseToJSONTyped, } from './ExtensionResponse'; /** * A list of extensions. * @export * @interface ExtensionListResponse */ export interface ExtensionListResponse { /** * * @type {Array<ExtensionResponse>} * @memberof ExtensionListResponse */ extensions: Array<ExtensionResponse>; } /** * Check if a given object implements the ExtensionListResponse interface. */ export function instanceOfExtensionListResponse(value: object): value is ExtensionListResponse { if (!('extensions' in value) || value['extensions'] === undefined) return false; return true; } export function ExtensionListResponseFromJSON(json: any): ExtensionListResponse { return ExtensionListResponseFromJSONTyped(json, false); } export function ExtensionListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtensionListResponse { if (json == null) { return json; } return { 'extensions': ((json['extensions'] as Array<any>).map(ExtensionResponseFromJSON)), }; } export function ExtensionListResponseToJSON(json: any): ExtensionListResponse { return ExtensionListResponseToJSONTyped(json, false); } export function ExtensionListResponseToJSONTyped(value?: ExtensionListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'extensions': ((value['extensions'] as Array<any>).map(ExtensionResponseToJSON)), }; }