/* 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 AccountAsset */ export interface AccountAsset { /** * * @type {string} * @memberof AccountAsset */ symbol: string; /** * * @type {number} * @memberof AccountAsset */ asset_id: number; /** * * @type {string} * @memberof AccountAsset */ balance: string; /** * * @type {string} * @memberof AccountAsset */ locked_balance: string; } /** * Check if a given object implements the AccountAsset interface. */ export function instanceOfAccountAsset(value: object): value is AccountAsset { if (!('symbol' in value) || value['symbol'] === undefined) return false; if (!('asset_id' in value) || value['asset_id'] === undefined) return false; if (!('balance' in value) || value['balance'] === undefined) return false; if (!('locked_balance' in value) || value['locked_balance'] === undefined) return false; return true; } export function AccountAssetFromJSON(json: any): AccountAsset { return AccountAssetFromJSONTyped(json, false); } export function AccountAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountAsset { if (json == null) { return json; } return { 'symbol': json['symbol'], 'asset_id': json['asset_id'], 'balance': json['balance'], 'locked_balance': json['locked_balance'], }; } export function AccountAssetToJSON(value?: AccountAsset | null): any { if (value == null) { return value; } return { 'symbol': value['symbol'], 'asset_id': value['asset_id'], 'balance': value['balance'], 'locked_balance': value['locked_balance'], }; }