/* 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 PendingUnlock */ export interface PendingUnlock { /** * * @type {number} * @memberof PendingUnlock */ unlock_timestamp: number; /** * * @type {number} * @memberof PendingUnlock */ asset_index: number; /** * * @type {string} * @memberof PendingUnlock */ amount: string; } /** * Check if a given object implements the PendingUnlock interface. */ export function instanceOfPendingUnlock(value: object): value is PendingUnlock { if (!('unlock_timestamp' in value) || value['unlock_timestamp'] === undefined) return false; if (!('asset_index' in value) || value['asset_index'] === undefined) return false; if (!('amount' in value) || value['amount'] === undefined) return false; return true; } export function PendingUnlockFromJSON(json: any): PendingUnlock { return PendingUnlockFromJSONTyped(json, false); } export function PendingUnlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): PendingUnlock { if (json == null) { return json; } return { 'unlock_timestamp': json['unlock_timestamp'], 'asset_index': json['asset_index'], 'amount': json['amount'], }; } export function PendingUnlockToJSON(value?: PendingUnlock | null): any { if (value == null) { return value; } return { 'unlock_timestamp': value['unlock_timestamp'], 'asset_index': value['asset_index'], 'amount': value['amount'], }; }