/* 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 { MainAccount } from './MainAccount'; import { MainAccountFromJSON, MainAccountFromJSONTyped, MainAccountToJSON, } from './MainAccount'; /** * * @export * @interface MainAccounts */ export interface MainAccounts { /** * * @type {number} * @memberof MainAccounts */ code?: number; /** * * @type {string} * @memberof MainAccounts */ message?: string; /** * * @type {number} * @memberof MainAccounts */ total: number; /** * * @type {Array} * @memberof MainAccounts */ accounts: Array; } /** * Check if a given object implements the MainAccounts interface. */ export function instanceOfMainAccounts(value: object): value is MainAccounts { if (!('total' in value) || value['total'] === undefined) return false; if (!('accounts' in value) || value['accounts'] === undefined) return false; return true; } export function MainAccountsFromJSON(json: any): MainAccounts { return MainAccountsFromJSONTyped(json, false); } export function MainAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MainAccounts { if (json == null) { return json; } return { 'code': json['code'] == null ? undefined : json['code'], 'message': json['message'] == null ? undefined : json['message'], 'total': json['total'], 'accounts': ((json['accounts'] as Array).map(MainAccountFromJSON)), }; } export function MainAccountsToJSON(value?: MainAccounts | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'total': value['total'], 'accounts': ((value['accounts'] as Array).map(MainAccountToJSON)), }; }