/* 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 SetLobbyStateParams */ export interface SetLobbyStateParams { /** * JSON blob to store metadata for a room. Must be smaller than 1MB. * @type {any} * @memberof SetLobbyStateParams */ state: any | null; } /** * Check if a given object implements the SetLobbyStateParams interface. */ export function instanceOfSetLobbyStateParams(value: object): boolean { let isInstance = true; isInstance = isInstance && "state" in value; return isInstance; } export function SetLobbyStateParamsFromJSON(json: any): SetLobbyStateParams { return SetLobbyStateParamsFromJSONTyped(json, false); } export function SetLobbyStateParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetLobbyStateParams { if ((json === undefined) || (json === null)) { return json; } return { 'state': json['state'], }; } export function SetLobbyStateParamsToJSON(value?: SetLobbyStateParams | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'state': value.state, }; }