/* 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 { DrawMetadata } from './DrawMetadata'; import { DrawMetadataFromJSON, DrawMetadataFromJSONTyped, DrawMetadataToJSON, } from './DrawMetadata'; import type { ParticipantField } from './ParticipantField'; import { ParticipantFieldFromJSON, ParticipantFieldFromJSONTyped, ParticipantFieldToJSON, } from './ParticipantField'; import type { BaseDraw } from './BaseDraw'; import { BaseDrawFromJSON, BaseDrawFromJSONTyped, BaseDrawToJSON, } from './BaseDraw'; import type { GroupsResult } from './GroupsResult'; import { GroupsResultFromJSON, GroupsResultFromJSONTyped, GroupsResultToJSON, } from './GroupsResult'; /** * * @export * @interface Groups */ export interface Groups extends BaseDraw { /** * * @type {Array} * @memberof Groups */ participants: Array; /** * * @type {number} * @memberof Groups */ numberOfGroups: number; /** * * @type {Array} * @memberof Groups */ readonly results: Array; } /** * Check if a given object implements the Groups interface. */ export function instanceOfGroups(value: object): value is Groups { if (!('participants' in value) || value['participants'] === undefined) return false; if (!('numberOfGroups' in value) || value['numberOfGroups'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function GroupsFromJSON(json: any): Groups { return GroupsFromJSONTyped(json, false); } export function GroupsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Groups { if (json == null) { return json; } return { ...BaseDrawFromJSONTyped(json, ignoreDiscriminator), 'participants': ((json['participants'] as Array).map(ParticipantFieldFromJSON)), 'numberOfGroups': json['number_of_groups'], 'results': ((json['results'] as Array).map(GroupsResultFromJSON)), }; } export function GroupsToJSON(value?: Omit | null): any { if (value == null) { return value; } return { ...BaseDrawToJSON(value), 'participants': ((value['participants'] as Array).map(ParticipantFieldToJSON)), 'number_of_groups': value['numberOfGroups'], }; }