/* 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'; /** * * @export * @interface ReqGetPublicPools */ export interface ReqGetPublicPools { /** * * @type {string} * @memberof ReqGetPublicPools */ auth?: string; /** * * @type {string} * @memberof ReqGetPublicPools */ filter?: ReqGetPublicPoolsFilterEnum; /** * * @type {number} * @memberof ReqGetPublicPools */ index: number; /** * * @type {number} * @memberof ReqGetPublicPools */ limit: number; /** * * @type {number} * @memberof ReqGetPublicPools */ account_index?: number; } /** * @export */ export const ReqGetPublicPoolsFilterEnum = { All: 'all', User: 'user', Protocol: 'protocol', AccountIndex: 'account_index' } as const; export type ReqGetPublicPoolsFilterEnum = typeof ReqGetPublicPoolsFilterEnum[keyof typeof ReqGetPublicPoolsFilterEnum]; /** * Check if a given object implements the ReqGetPublicPools interface. */ export function instanceOfReqGetPublicPools(value: object): value is ReqGetPublicPools { if (!('index' in value) || value['index'] === undefined) return false; if (!('limit' in value) || value['limit'] === undefined) return false; return true; } export function ReqGetPublicPoolsFromJSON(json: any): ReqGetPublicPools { return ReqGetPublicPoolsFromJSONTyped(json, false); } export function ReqGetPublicPoolsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPublicPools { if (json == null) { return json; } return { 'auth': json['auth'] == null ? undefined : json['auth'], 'filter': json['filter'] == null ? undefined : json['filter'], 'index': json['index'], 'limit': json['limit'], 'account_index': json['account_index'] == null ? undefined : json['account_index'], }; } export function ReqGetPublicPoolsToJSON(value?: ReqGetPublicPools | null): any { if (value == null) { return value; } return { 'auth': value['auth'], 'filter': value['filter'], 'index': value['index'], 'limit': value['limit'], 'account_index': value['account_index'], }; }