@ringer-tel/ivy
Version:
TypeScript SDK for Ringer APIs
66 lines (56 loc) • 1.85 kB
text/typescript
/* 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 { Link } from './Link';
import {
instanceOfLink,
LinkFromJSON,
LinkFromJSONTyped,
LinkToJSON,
} from './Link';
/**
* @type PaginationLinksNext
* Link to the next page, null if this is the last page.
* @export
*/
export type PaginationLinksNext = Link | object;
export function PaginationLinksNextFromJSON(json: any): PaginationLinksNext {
return PaginationLinksNextFromJSONTyped(json, false);
}
export function PaginationLinksNextFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginationLinksNext {
if (json == null) {
return json;
}
if (typeof json !== 'object') {
return json;
}
if (instanceOfLink(json)) {
return LinkFromJSONTyped(json, true);
}
return {} as any;
}
export function PaginationLinksNextToJSON(json: any): any {
return PaginationLinksNextToJSONTyped(json, false);
}
export function PaginationLinksNextToJSONTyped(value?: PaginationLinksNext | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
if (typeof value !== 'object') {
return value;
}
if (instanceOfLink(value)) {
return LinkToJSON(value as Link);
}
return {};
}