/* 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 PublicPoolShare */ export interface PublicPoolShare { /** * * @type {number} * @memberof PublicPoolShare */ public_pool_index: number; /** * * @type {number} * @memberof PublicPoolShare */ shares_amount: number; /** * For public pools and insurance fund * @type {string} * @memberof PublicPoolShare */ entry_usdc: string; /** * * @type {string} * @memberof PublicPoolShare */ principal_amount: string; /** * * @type {number} * @memberof PublicPoolShare */ entry_timestamp: number; } /** * Check if a given object implements the PublicPoolShare interface. */ export function instanceOfPublicPoolShare(value: object): value is PublicPoolShare { if (!('public_pool_index' in value) || value['public_pool_index'] === undefined) return false; if (!('shares_amount' in value) || value['shares_amount'] === undefined) return false; if (!('entry_usdc' in value) || value['entry_usdc'] === undefined) return false; if (!('principal_amount' in value) || value['principal_amount'] === undefined) return false; if (!('entry_timestamp' in value) || value['entry_timestamp'] === undefined) return false; return true; } export function PublicPoolShareFromJSON(json: any): PublicPoolShare { return PublicPoolShareFromJSONTyped(json, false); } export function PublicPoolShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicPoolShare { if (json == null) { return json; } return { 'public_pool_index': json['public_pool_index'], 'shares_amount': json['shares_amount'], 'entry_usdc': json['entry_usdc'], 'principal_amount': json['principal_amount'], 'entry_timestamp': json['entry_timestamp'], }; } export function PublicPoolShareToJSON(value?: PublicPoolShare | null): any { if (value == null) { return value; } return { 'public_pool_index': value['public_pool_index'], 'shares_amount': value['shares_amount'], 'entry_usdc': value['entry_usdc'], 'principal_amount': value['principal_amount'], 'entry_timestamp': value['entry_timestamp'], }; }