/* 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 LoginGoogleRequest */ export interface LoginGoogleRequest { /** * A Google-signed OIDC ID token representing a player's authenticated identity. Learn how to get an `idToken` [here](https://cloud.google.com/docs/authentication/get-id-token). * @type {string} * @memberof LoginGoogleRequest */ idToken: string; } /** * Check if a given object implements the LoginGoogleRequest interface. */ export function instanceOfLoginGoogleRequest(value: object): boolean { let isInstance = true; isInstance = isInstance && "idToken" in value; return isInstance; } export function LoginGoogleRequestFromJSON(json: any): LoginGoogleRequest { return LoginGoogleRequestFromJSONTyped(json, false); } export function LoginGoogleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginGoogleRequest { if ((json === undefined) || (json === null)) { return json; } return { 'idToken': json['idToken'], }; } export function LoginGoogleRequestToJSON(value?: LoginGoogleRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'idToken': value.idToken, }; }