/* 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 ReqGetSubAccount */ export interface ReqGetSubAccount { /** * * @type {string} * @memberof ReqGetSubAccount */ by: ReqGetSubAccountByEnum; /** * * @type {string} * @memberof ReqGetSubAccount */ value: string; /** * NilSubAccountIndex * @type {number} * @memberof ReqGetSubAccount */ sub_account_index: number; } /** * @export */ export const ReqGetSubAccountByEnum = { Index: 'index', L1Address: 'l1_address' } as const; export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof ReqGetSubAccountByEnum]; /** * Check if a given object implements the ReqGetSubAccount interface. */ export function instanceOfReqGetSubAccount(value: object): value is ReqGetSubAccount { if (!('by' in value) || value['by'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false; return true; } export function ReqGetSubAccountFromJSON(json: any): ReqGetSubAccount { return ReqGetSubAccountFromJSONTyped(json, false); } export function ReqGetSubAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetSubAccount { if (json == null) { return json; } return { 'by': json['by'], 'value': json['value'], 'sub_account_index': json['sub_account_index'], }; } export function ReqGetSubAccountToJSON(value?: ReqGetSubAccount | null): any { if (value == null) { return value; } return { 'by': value['by'], 'value': value['value'], 'sub_account_index': value['sub_account_index'], }; }