/* 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 { ApplicationAuthConfigurationGoogle } from './ApplicationAuthConfigurationGoogle'; import { ApplicationAuthConfigurationGoogleFromJSON, ApplicationAuthConfigurationGoogleFromJSONTyped, ApplicationAuthConfigurationGoogleToJSON, } from './ApplicationAuthConfigurationGoogle'; /** * * @export * @interface AppConfigAuthConfiguration */ export interface AppConfigAuthConfiguration { /** * * @type {ApplicationAuthConfigurationGoogle} * @memberof AppConfigAuthConfiguration */ google?: ApplicationAuthConfigurationGoogle; /** * Construct a type with a set of properties K of type T * @type {object} * @memberof AppConfigAuthConfiguration */ nickname?: object; /** * Construct a type with a set of properties K of type T * @type {object} * @memberof AppConfigAuthConfiguration */ anonymous?: object; } /** * Check if a given object implements the AppConfigAuthConfiguration interface. */ export function instanceOfAppConfigAuthConfiguration(value: object): boolean { let isInstance = true; return isInstance; } export function AppConfigAuthConfigurationFromJSON(json: any): AppConfigAuthConfiguration { return AppConfigAuthConfigurationFromJSONTyped(json, false); } export function AppConfigAuthConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppConfigAuthConfiguration { if ((json === undefined) || (json === null)) { return json; } return { 'google': !exists(json, 'google') ? undefined : ApplicationAuthConfigurationGoogleFromJSON(json['google']), 'nickname': !exists(json, 'nickname') ? undefined : json['nickname'], 'anonymous': !exists(json, 'anonymous') ? undefined : json['anonymous'], }; } export function AppConfigAuthConfigurationToJSON(value?: AppConfigAuthConfiguration | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'google': ApplicationAuthConfigurationGoogleToJSON(value.google), 'nickname': value.nickname, 'anonymous': value.anonymous, }; }