/* 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 InviteStatusRescinded */ export interface InviteStatusRescinded { /** * System generated unique identifier for a user. Not guaranteed to have a specific format. * @type {string} * @memberof InviteStatusRescinded */ rescindedBy: string; /** * System generated unique identifier for a user. Not guaranteed to have a specific format. * @type {string} * @memberof InviteStatusRescinded */ userId?: string; /** * * @type {string} * @memberof InviteStatusRescinded */ type: InviteStatusRescindedTypeEnum; } /** * @export */ export const InviteStatusRescindedTypeEnum = { Rescinded: 'rescinded' } as const; export type InviteStatusRescindedTypeEnum = typeof InviteStatusRescindedTypeEnum[keyof typeof InviteStatusRescindedTypeEnum]; /** * Check if a given object implements the InviteStatusRescinded interface. */ export function instanceOfInviteStatusRescinded(value: object): boolean { let isInstance = true; isInstance = isInstance && "rescindedBy" in value; isInstance = isInstance && "type" in value; return isInstance; } export function InviteStatusRescindedFromJSON(json: any): InviteStatusRescinded { return InviteStatusRescindedFromJSONTyped(json, false); } export function InviteStatusRescindedFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteStatusRescinded { if ((json === undefined) || (json === null)) { return json; } return { 'rescindedBy': json['rescindedBy'], 'userId': !exists(json, 'userId') ? undefined : json['userId'], 'type': json['type'], }; } export function InviteStatusRescindedToJSON(value?: InviteStatusRescinded | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'rescindedBy': value.rescindedBy, 'userId': value.userId, 'type': value.type, }; }