/* 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'; import type { Asset } from './Asset'; import { AssetFromJSON, AssetFromJSONTyped, AssetToJSON, } from './Asset'; /** * * @export * @interface AssetDetails */ export interface AssetDetails { /** * * @type {number} * @memberof AssetDetails */ code: number; /** * * @type {string} * @memberof AssetDetails */ message?: string; /** * * @type {Array} * @memberof AssetDetails */ asset_details: Array; } /** * Check if a given object implements the AssetDetails interface. */ export function instanceOfAssetDetails(value: object): value is AssetDetails { if (!('code' in value) || value['code'] === undefined) return false; if (!('asset_details' in value) || value['asset_details'] === undefined) return false; return true; } export function AssetDetailsFromJSON(json: any): AssetDetails { return AssetDetailsFromJSONTyped(json, false); } export function AssetDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetDetails { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'asset_details': ((json['asset_details'] as Array).map(AssetFromJSON)), }; } export function AssetDetailsToJSON(value?: AssetDetails | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'asset_details': ((value['asset_details'] as Array).map(AssetToJSON)), }; }