/* 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 { SecretSantaAdminResponseParticipantsInner } from './SecretSantaAdminResponseParticipantsInner'; import { SecretSantaAdminResponseParticipantsInnerFromJSON, SecretSantaAdminResponseParticipantsInnerFromJSONTyped, SecretSantaAdminResponseParticipantsInnerToJSON, } from './SecretSantaAdminResponseParticipantsInner'; /** * * @export * @interface SecretSantaAdminResponse */ export interface SecretSantaAdminResponse { /** * * @type {string} * @memberof SecretSantaAdminResponse */ id: string; /** * * @type {Date} * @memberof SecretSantaAdminResponse */ createdAt: Date; /** * * @type {Array} * @memberof SecretSantaAdminResponse */ payments: Array; /** * * @type {Array} * @memberof SecretSantaAdminResponse */ participants: Array; } /** * @export */ export const SecretSantaAdminResponsePaymentsEnum = { Certified: 'CERTIFIED', Adfree: 'ADFREE', Support: 'SUPPORT' } as const; export type SecretSantaAdminResponsePaymentsEnum = typeof SecretSantaAdminResponsePaymentsEnum[keyof typeof SecretSantaAdminResponsePaymentsEnum]; /** * Check if a given object implements the SecretSantaAdminResponse interface. */ export function instanceOfSecretSantaAdminResponse(value: object): value is SecretSantaAdminResponse { if (!('id' in value) || value['id'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; if (!('payments' in value) || value['payments'] === undefined) return false; if (!('participants' in value) || value['participants'] === undefined) return false; return true; } export function SecretSantaAdminResponseFromJSON(json: any): SecretSantaAdminResponse { return SecretSantaAdminResponseFromJSONTyped(json, false); } export function SecretSantaAdminResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretSantaAdminResponse { if (json == null) { return json; } return { 'id': json['id'], 'createdAt': (new Date(json['created_at'])), 'payments': json['payments'], 'participants': ((json['participants'] as Array).map(SecretSantaAdminResponseParticipantsInnerFromJSON)), }; } export function SecretSantaAdminResponseToJSON(value?: SecretSantaAdminResponse | null): any { if (value == null) { return value; } return { 'id': value['id'], 'created_at': ((value['createdAt']).toISOString()), 'payments': value['payments'], 'participants': ((value['participants'] as Array).map(SecretSantaAdminResponseParticipantsInnerToJSON)), }; }