/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * 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 { PublicPool } from './PublicPool'; import { PublicPoolFromJSON, PublicPoolFromJSONTyped, PublicPoolToJSON, } from './PublicPool'; /** * * @export * @interface PublicPools */ export interface PublicPools { /** * * @type {number} * @memberof PublicPools */ code: number; /** * * @type {string} * @memberof PublicPools */ message?: string; /** * * @type {number} * @memberof PublicPools */ total: number; /** * * @type {Array} * @memberof PublicPools */ public_pools: Array; } /** * Check if a given object implements the PublicPools interface. */ export function instanceOfPublicPools(value: object): value is PublicPools { if (!('code' in value) || value['code'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; if (!('public_pools' in value) || value['public_pools'] === undefined) return false; return true; } export function PublicPoolsFromJSON(json: any): PublicPools { return PublicPoolsFromJSONTyped(json, false); } export function PublicPoolsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicPools { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'total': json['total'], 'public_pools': ((json['public_pools'] as Array).map(PublicPoolFromJSON)), }; } export function PublicPoolsToJSON(value?: PublicPools | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'total': value['total'], 'public_pools': ((value['public_pools'] as Array).map(PublicPoolToJSON)), }; }