/* 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 GoogleIdTokenObject */ export interface GoogleIdTokenObject { /** * 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 GoogleIdTokenObject */ idToken: string; } /** * Check if a given object implements the GoogleIdTokenObject interface. */ export function instanceOfGoogleIdTokenObject(value: object): boolean { let isInstance = true; isInstance = isInstance && "idToken" in value; return isInstance; } export function GoogleIdTokenObjectFromJSON(json: any): GoogleIdTokenObject { return GoogleIdTokenObjectFromJSONTyped(json, false); } export function GoogleIdTokenObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleIdTokenObject { if ((json === undefined) || (json === null)) { return json; } return { 'idToken': json['idToken'], }; } export function GoogleIdTokenObjectToJSON(value?: GoogleIdTokenObject | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'idToken': value.idToken, }; }