/* 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 ApiKey */ export interface ApiKey { /** * * @type {number} * @memberof ApiKey */ account_index: number; /** * * @type {number} * @memberof ApiKey */ api_key_index: number; /** * * @type {number} * @memberof ApiKey */ nonce: number; /** * * @type {string} * @memberof ApiKey */ public_key: string; /** * * @type {number} * @memberof ApiKey */ transaction_time: number; } /** * Check if a given object implements the ApiKey interface. */ export function instanceOfApiKey(value: object): value is ApiKey { if (!('account_index' in value) || value['account_index'] === undefined) return false; if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false; if (!('nonce' in value) || value['nonce'] === undefined) return false; if (!('public_key' in value) || value['public_key'] === undefined) return false; if (!('transaction_time' in value) || value['transaction_time'] === undefined) return false; return true; } export function ApiKeyFromJSON(json: any): ApiKey { return ApiKeyFromJSONTyped(json, false); } export function ApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKey { if (json == null) { return json; } return { 'account_index': json['account_index'], 'api_key_index': json['api_key_index'], 'nonce': json['nonce'], 'public_key': json['public_key'], 'transaction_time': json['transaction_time'], }; } export function ApiKeyToJSON(value?: ApiKey | null): any { if (value == null) { return value; } return { 'account_index': value['account_index'], 'api_key_index': value['api_key_index'], 'nonce': value['nonce'], 'public_key': value['public_key'], 'transaction_time': value['transaction_time'], }; }