/* 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 NewUserInfo */ export interface NewUserInfo { /** * * @type {string} * @memberof NewUserInfo */ email: string; /** * * @type {string} * @memberof NewUserInfo */ userId: string; } /** * Check if a given object implements the NewUserInfo interface. */ export function instanceOfNewUserInfo(value: object): boolean { let isInstance = true; isInstance = isInstance && "email" in value; isInstance = isInstance && "userId" in value; return isInstance; } export function NewUserInfoFromJSON(json: any): NewUserInfo { return NewUserInfoFromJSONTyped(json, false); } export function NewUserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NewUserInfo { if ((json === undefined) || (json === null)) { return json; } return { 'email': json['email'], 'userId': json['user_id'], }; } export function NewUserInfoToJSON(value?: NewUserInfo | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'user_id': value.userId, }; }