/* tslint:disable */ /* eslint-disable */ /** * Hathora Cloud API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * 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 { CreateAppRequestAuthConfigurationGoogle } from './CreateAppRequestAuthConfigurationGoogle'; import { CreateAppRequestAuthConfigurationGoogleFromJSON, CreateAppRequestAuthConfigurationGoogleFromJSONTyped, CreateAppRequestAuthConfigurationGoogleToJSON, } from './CreateAppRequestAuthConfigurationGoogle'; /** * * @export * @interface CreateAppRequestAuthConfiguration */ export interface CreateAppRequestAuthConfiguration { /** * * @type {CreateAppRequestAuthConfigurationGoogle} * @memberof CreateAppRequestAuthConfiguration */ google?: CreateAppRequestAuthConfigurationGoogle; /** * Construct a type with a set of properties K of type T * @type {object} * @memberof CreateAppRequestAuthConfiguration */ nickname?: object; /** * Construct a type with a set of properties K of type T * @type {object} * @memberof CreateAppRequestAuthConfiguration */ anonymous?: object; } /** * Check if a given object implements the CreateAppRequestAuthConfiguration interface. */ export function instanceOfCreateAppRequestAuthConfiguration(value: object): boolean { let isInstance = true; return isInstance; } export function CreateAppRequestAuthConfigurationFromJSON(json: any): CreateAppRequestAuthConfiguration { return CreateAppRequestAuthConfigurationFromJSONTyped(json, false); } export function CreateAppRequestAuthConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAppRequestAuthConfiguration { if ((json === undefined) || (json === null)) { return json; } return { 'google': !exists(json, 'google') ? undefined : CreateAppRequestAuthConfigurationGoogleFromJSON(json['google']), 'nickname': !exists(json, 'nickname') ? undefined : json['nickname'], 'anonymous': !exists(json, 'anonymous') ? undefined : json['anonymous'], }; } export function CreateAppRequestAuthConfigurationToJSON(value?: CreateAppRequestAuthConfiguration | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'google': CreateAppRequestAuthConfigurationGoogleToJSON(value.google), 'nickname': value.nickname, 'anonymous': value.anonymous, }; }