/* 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 MainAccount */ export interface MainAccount { /** * * @type {number} * @memberof MainAccount */ code?: number; /** * * @type {string} * @memberof MainAccount */ message?: string; /** * * @type {number} * @memberof MainAccount */ index: number; /** * * @type {string} * @memberof MainAccount */ l1_address: string; /** * * @type {number} * @memberof MainAccount */ status: number; } /** * Check if a given object implements the MainAccount interface. */ export function instanceOfMainAccount(value: object): value is MainAccount { if (!('index' in value) || value['index'] === undefined) return false; if (!('l1_address' in value) || value['l1_address'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } export function MainAccountFromJSON(json: any): MainAccount { return MainAccountFromJSONTyped(json, false); } export function MainAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): MainAccount { if (json == null) { return json; } return { 'code': json['code'] == null ? undefined : json['code'], 'message': json['message'] == null ? undefined : json['message'], 'index': json['index'], 'l1_address': json['l1_address'], 'status': json['status'], }; } export function MainAccountToJSON(value?: MainAccount | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'index': value['index'], 'l1_address': value['l1_address'], 'status': value['status'], }; }