/* 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 { OrgToken } from './OrgToken'; import { OrgTokenFromJSON, OrgTokenFromJSONTyped, OrgTokenToJSON, } from './OrgToken'; /** * * @export * @interface ListOrgTokens */ export interface ListOrgTokens { /** * * @type {Array} * @memberof ListOrgTokens */ tokens: Array; } /** * Check if a given object implements the ListOrgTokens interface. */ export function instanceOfListOrgTokens(value: object): boolean { let isInstance = true; isInstance = isInstance && "tokens" in value; return isInstance; } export function ListOrgTokensFromJSON(json: any): ListOrgTokens { return ListOrgTokensFromJSONTyped(json, false); } export function ListOrgTokensFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrgTokens { if ((json === undefined) || (json === null)) { return json; } return { 'tokens': ((json['tokens'] as Array).map(OrgTokenFromJSON)), }; } export function ListOrgTokensToJSON(value?: ListOrgTokens | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'tokens': ((value.tokens as Array).map(OrgTokenToJSON)), }; }