UNPKG

@ringer-tel/ivy

Version:
90 lines (78 loc) 2.82 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 { PaginationLinks } from './PaginationLinks'; import { PaginationLinksFromJSON, PaginationLinksFromJSONTyped, PaginationLinksToJSON, PaginationLinksToJSONTyped, } from './PaginationLinks'; import type { SchemasCallBlockResponse } from './SchemasCallBlockResponse'; import { SchemasCallBlockResponseFromJSON, SchemasCallBlockResponseFromJSONTyped, SchemasCallBlockResponseToJSON, SchemasCallBlockResponseToJSONTyped, } from './SchemasCallBlockResponse'; /** * * @export * @interface CallBlockListResponse */ export interface CallBlockListResponse { /** * * @type {Array<SchemasCallBlockResponse>} * @memberof CallBlockListResponse */ data: Array<SchemasCallBlockResponse>; /** * * @type {PaginationLinks} * @memberof CallBlockListResponse */ links?: PaginationLinks; } /** * Check if a given object implements the CallBlockListResponse interface. */ export function instanceOfCallBlockListResponse(value: object): value is CallBlockListResponse { if (!('data' in value) || value['data'] === undefined) return false; return true; } export function CallBlockListResponseFromJSON(json: any): CallBlockListResponse { return CallBlockListResponseFromJSONTyped(json, false); } export function CallBlockListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallBlockListResponse { if (json == null) { return json; } return { 'data': ((json['data'] as Array<any>).map(SchemasCallBlockResponseFromJSON)), 'links': json['links'] == null ? undefined : PaginationLinksFromJSON(json['links']), }; } export function CallBlockListResponseToJSON(json: any): CallBlockListResponse { return CallBlockListResponseToJSONTyped(json, false); } export function CallBlockListResponseToJSONTyped(value?: CallBlockListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'data': ((value['data'] as Array<any>).map(SchemasCallBlockResponseToJSON)), 'links': PaginationLinksToJSON(value['links']), }; }