/* 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 { AccountMetadata } from './AccountMetadata'; import { AccountMetadataFromJSON, AccountMetadataFromJSONTyped, AccountMetadataToJSON, } from './AccountMetadata'; /** * * @export * @interface AccountMetadatas */ export interface AccountMetadatas { /** * * @type {number} * @memberof AccountMetadatas */ code: number; /** * * @type {string} * @memberof AccountMetadatas */ message?: string; /** * * @type {Array} * @memberof AccountMetadatas */ account_metadatas: Array; /** * * @type {string} * @memberof AccountMetadatas */ next_cursor?: string; } /** * Check if a given object implements the AccountMetadatas interface. */ export function instanceOfAccountMetadatas(value: object): value is AccountMetadatas { if (!('code' in value) || value['code'] === undefined) return false; if (!('account_metadatas' in value) || value['account_metadatas'] === undefined) return false; return true; } export function AccountMetadatasFromJSON(json: any): AccountMetadatas { return AccountMetadatasFromJSONTyped(json, false); } export function AccountMetadatasFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetadatas { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'account_metadatas': ((json['account_metadatas'] as Array).map(AccountMetadataFromJSON)), 'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'], }; } export function AccountMetadatasToJSON(value?: AccountMetadatas | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'account_metadatas': ((value['account_metadatas'] as Array).map(AccountMetadataToJSON)), 'next_cursor': value['next_cursor'], }; }