/* 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'; /** * * @export * @interface CreateOrgToken */ export interface CreateOrgToken { /** * Readable name for a token. Must be unique within an organization. * @type {string} * @memberof CreateOrgToken */ name: string; } /** * Check if a given object implements the CreateOrgToken interface. */ export function instanceOfCreateOrgToken(value: object): boolean { let isInstance = true; isInstance = isInstance && "name" in value; return isInstance; } export function CreateOrgTokenFromJSON(json: any): CreateOrgToken { return CreateOrgTokenFromJSONTyped(json, false); } export function CreateOrgTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrgToken { if ((json === undefined) || (json === null)) { return json; } return { 'name': json['name'], }; } export function CreateOrgTokenToJSON(value?: CreateOrgToken | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'name': value.name, }; }