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