/* tslint:disable */ /* eslint-disable */ /** * EAS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { BaseObject } from './BaseObject'; import { BaseObjectFromJSON, BaseObjectFromJSONTyped, BaseObjectToJSON, } from './BaseObject'; /** * * @export * @interface Participant */ export interface Participant extends BaseObject { /** * * @type {string} * @memberof Participant */ name: string; /** * * @type {string} * @memberof Participant */ facebookId?: string; } /** * Check if a given object implements the Participant interface. */ export function instanceOfParticipant(value: object): value is Participant { if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ParticipantFromJSON(json: any): Participant { return ParticipantFromJSONTyped(json, false); } export function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Participant { if (json == null) { return json; } return { ...BaseObjectFromJSONTyped(json, ignoreDiscriminator), 'name': json['name'], 'facebookId': json['facebook_id'] == null ? undefined : json['facebook_id'], }; } export function ParticipantToJSON(value?: Omit | null): any { if (value == null) { return value; } return { ...BaseObjectToJSON(value), 'name': value['name'], 'facebook_id': value['facebookId'], }; }