/* tslint:disable */ /* eslint-disable */ /** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import type { Region } from './Region'; import { RegionFromJSON, RegionFromJSONTyped, RegionToJSON, } from './Region'; /** * * @export * @interface PingEndpointsInner */ export interface PingEndpointsInner { /** * * @type {number} * @memberof PingEndpointsInner */ port: number; /** * * @type {string} * @memberof PingEndpointsInner */ host: string; /** * * @type {Region} * @memberof PingEndpointsInner */ region: Region; } /** * Check if a given object implements the PingEndpointsInner interface. */ export function instanceOfPingEndpointsInner(value: object): boolean { let isInstance = true; isInstance = isInstance && "port" in value; isInstance = isInstance && "host" in value; isInstance = isInstance && "region" in value; return isInstance; } export function PingEndpointsInnerFromJSON(json: any): PingEndpointsInner { return PingEndpointsInnerFromJSONTyped(json, false); } export function PingEndpointsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PingEndpointsInner { if ((json === undefined) || (json === null)) { return json; } return { 'port': json['port'], 'host': json['host'], 'region': RegionFromJSON(json['region']), }; } export function PingEndpointsInnerToJSON(value?: PingEndpointsInner | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'port': value.port, 'host': value.host, 'region': RegionToJSON(value.region), }; }