/* 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 { ParticipantField } from './ParticipantField'; import { ParticipantFieldFromJSON, ParticipantFieldFromJSONTyped, ParticipantFieldToJSON, } from './ParticipantField'; import type { PrizeField } from './PrizeField'; import { PrizeFieldFromJSON, PrizeFieldFromJSONTyped, PrizeFieldToJSON, } from './PrizeField'; /** * * @export * @interface RaffleFields */ export interface RaffleFields { /** * * @type {Array} * @memberof RaffleFields */ prizes: Array; /** * * @type {Array} * @memberof RaffleFields */ participants: Array; } /** * Check if a given object implements the RaffleFields interface. */ export function instanceOfRaffleFields(value: object): value is RaffleFields { if (!('prizes' in value) || value['prizes'] === undefined) return false; if (!('participants' in value) || value['participants'] === undefined) return false; return true; } export function RaffleFieldsFromJSON(json: any): RaffleFields { return RaffleFieldsFromJSONTyped(json, false); } export function RaffleFieldsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RaffleFields { if (json == null) { return json; } return { 'prizes': ((json['prizes'] as Array).map(PrizeFieldFromJSON)), 'participants': ((json['participants'] as Array).map(ParticipantFieldFromJSON)), }; } export function RaffleFieldsToJSON(value?: RaffleFields | null): any { if (value == null) { return value; } return { 'prizes': ((value['prizes'] as Array).map(PrizeFieldToJSON)), 'participants': ((value['participants'] as Array).map(ParticipantFieldToJSON)), }; }