/* tslint:disable */ /* eslint-disable */ /** * Nominex TMA API * API config for Nominex TMA * * The version of the OpenAPI document: 0.0.17 * * * 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'; import type { UpgradeableBoosterType } from './UpgradeableBoosterType'; import { UpgradeableBoosterTypeFromJSON, UpgradeableBoosterTypeFromJSONTyped, UpgradeableBoosterTypeToJSON, } from './UpgradeableBoosterType'; /** * * @export * @interface BoosterPrice */ export interface BoosterPrice { /** * * @type {UpgradeableBoosterType} * @memberof BoosterPrice */ type?: UpgradeableBoosterType; /** * * @type {number} * @memberof BoosterPrice */ level?: number; /** * * @type {number} * @memberof BoosterPrice */ price?: number; } /** * Check if a given object implements the BoosterPrice interface. */ export function instanceOfBoosterPrice(value: object): boolean { let isInstance = true; return isInstance; } export function BoosterPriceFromJSON(json: any): BoosterPrice { return BoosterPriceFromJSONTyped(json, false); } export function BoosterPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoosterPrice { if ((json === undefined) || (json === null)) { return json; } return { 'type': !exists(json, 'type') ? undefined : UpgradeableBoosterTypeFromJSON(json['type']), 'level': !exists(json, 'level') ? undefined : json['level'], 'price': !exists(json, 'price') ? undefined : json['price'], }; } export function BoosterPriceToJSON(value?: BoosterPrice | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'type': UpgradeableBoosterTypeToJSON(value.type), 'level': value.level, 'price': value.price, }; }