UNPKG

@ringer-tel/ivy

Version:
66 lines (56 loc) 2.11 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 type { SiteDestination } from './SiteDestination'; import { instanceOfSiteDestination, SiteDestinationFromJSON, SiteDestinationFromJSONTyped, SiteDestinationToJSON, } from './SiteDestination'; /** * @type PhoneNumberResponseAllOfDestination * * @export */ export type PhoneNumberResponseAllOfDestination = SiteDestination | object; export function PhoneNumberResponseAllOfDestinationFromJSON(json: any): PhoneNumberResponseAllOfDestination { return PhoneNumberResponseAllOfDestinationFromJSONTyped(json, false); } export function PhoneNumberResponseAllOfDestinationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneNumberResponseAllOfDestination { if (json == null) { return json; } if (typeof json !== 'object') { return json; } if (instanceOfSiteDestination(json)) { return SiteDestinationFromJSONTyped(json, true); } return {} as any; } export function PhoneNumberResponseAllOfDestinationToJSON(json: any): any { return PhoneNumberResponseAllOfDestinationToJSONTyped(json, false); } export function PhoneNumberResponseAllOfDestinationToJSONTyped(value?: PhoneNumberResponseAllOfDestination | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } if (typeof value !== 'object') { return value; } if (instanceOfSiteDestination(value)) { return SiteDestinationToJSON(value as SiteDestination); } return {}; }