/* tslint:disable */ /* eslint-disable */ /** * BugBash * BugBash\'s backend service * * The version of the OpenAPI document: 1.2.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 { exists, mapValues } from '../runtime'; /** * * @export * @interface BugBash */ export interface BugBash { /** * * @type {string} * @memberof BugBash */ id: string; /** * * @type {string} * @memberof BugBash */ bugBashName: string; /** * * @type {string} * @memberof BugBash */ accountID: string; /** * * @type {string} * @memberof BugBash */ joinCode: string; /** * * @type {Array} * @memberof BugBash */ participants?: Array; /** * * @type {string} * @memberof BugBash */ facilitator: string; /** * * @type {Date} * @memberof BugBash */ createdAt: Date; /** * * @type {Date} * @memberof BugBash */ endedAt?: Date; /** * * @type {string} * @memberof BugBash */ timeAllotted: string; } export function BugBashFromJSON(json: any): BugBash { return BugBashFromJSONTyped(json, false); } export function BugBashFromJSONTyped(json: any, ignoreDiscriminator: boolean): BugBash { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'bugBashName': json['bugBashName'], 'accountID': json['accountID'], 'joinCode': json['joinCode'], 'participants': !exists(json, 'participants') ? undefined : json['participants'], 'facilitator': json['facilitator'], 'createdAt': (new Date(json['createdAt'])), 'endedAt': !exists(json, 'endedAt') ? undefined : (new Date(json['endedAt'])), 'timeAllotted': json['timeAllotted'], }; } export function BugBashToJSON(value?: BugBash | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'bugBashName': value.bugBashName, 'accountID': value.accountID, 'joinCode': value.joinCode, 'participants': value.participants, 'facilitator': value.facilitator, 'createdAt': (value.createdAt.toISOString()), 'endedAt': value.endedAt === undefined ? undefined : (value.endedAt.toISOString()), 'timeAllotted': value.timeAllotted, }; }