/* 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 { ApiKey } from './ApiKey'; import { ApiKeyFromJSON, ApiKeyFromJSONTyped, ApiKeyToJSON, } from './ApiKey'; /** * * @export * @interface AccountApiKeys */ export interface AccountApiKeys { /** * * @type {number} * @memberof AccountApiKeys */ code: number; /** * * @type {string} * @memberof AccountApiKeys */ message?: string; /** * * @type {Array} * @memberof AccountApiKeys */ api_keys: Array; } /** * Check if a given object implements the AccountApiKeys interface. */ export function instanceOfAccountApiKeys(value: object): value is AccountApiKeys { if (!('code' in value) || value['code'] === undefined) return false; if (!('api_keys' in value) || value['api_keys'] === undefined) return false; return true; } export function AccountApiKeysFromJSON(json: any): AccountApiKeys { return AccountApiKeysFromJSONTyped(json, false); } export function AccountApiKeysFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountApiKeys { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'api_keys': ((json['api_keys'] as Array).map(ApiKeyFromJSON)), }; } export function AccountApiKeysToJSON(value?: AccountApiKeys | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'api_keys': ((value['api_keys'] as Array).map(ApiKeyToJSON)), }; }