/* 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 { BaseDraw } from './BaseDraw'; import { BaseDrawFromJSON, BaseDrawFromJSONTyped, BaseDrawToJSON, } from './BaseDraw'; import type { CoinResult } from './CoinResult'; import { CoinResultFromJSON, CoinResultFromJSONTyped, CoinResultToJSON, } from './CoinResult'; /** * * @export * @interface Coin */ export interface Coin extends BaseDraw { /** * * @type {Array} * @memberof Coin */ readonly results?: Array; } /** * Check if a given object implements the Coin interface. */ export function instanceOfCoin(value: object): value is Coin { return true; } export function CoinFromJSON(json: any): Coin { return CoinFromJSONTyped(json, false); } export function CoinFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coin { if (json == null) { return json; } return { ...BaseDrawFromJSONTyped(json, ignoreDiscriminator), 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(CoinResultFromJSON)), }; } export function CoinToJSON(value?: Omit | null): any { if (value == null) { return value; } return { ...BaseDrawToJSON(value), }; }