/* 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 DailyReturn */ export interface DailyReturn { /** * * @type {number} * @memberof DailyReturn */ timestamp: number; /** * * @type {number} * @memberof DailyReturn */ daily_return: number; } /** * Check if a given object implements the DailyReturn interface. */ export function instanceOfDailyReturn(value: object): value is DailyReturn { if (!('timestamp' in value) || value['timestamp'] === undefined) return false; if (!('daily_return' in value) || value['daily_return'] === undefined) return false; return true; } export function DailyReturnFromJSON(json: any): DailyReturn { return DailyReturnFromJSONTyped(json, false); } export function DailyReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): DailyReturn { if (json == null) { return json; } return { 'timestamp': json['timestamp'], 'daily_return': json['daily_return'], }; } export function DailyReturnToJSON(value?: DailyReturn | null): any { if (value == null) { return value; } return { 'timestamp': value['timestamp'], 'daily_return': value['daily_return'], }; }