/* 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 { Organization } from './Organization'; import { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON, } from './Organization'; /** * * @export * @interface OrgsPage */ export interface OrgsPage { /** * * @type {Array} * @memberof OrgsPage */ orgs: Array; } /** * Check if a given object implements the OrgsPage interface. */ export function instanceOfOrgsPage(value: object): boolean { let isInstance = true; isInstance = isInstance && "orgs" in value; return isInstance; } export function OrgsPageFromJSON(json: any): OrgsPage { return OrgsPageFromJSONTyped(json, false); } export function OrgsPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrgsPage { if ((json === undefined) || (json === null)) { return json; } return { 'orgs': ((json['orgs'] as Array).map(OrganizationFromJSON)), }; } export function OrgsPageToJSON(value?: OrgsPage | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'orgs': ((value.orgs as Array).map(OrganizationToJSON)), }; }