/* 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 RespGetFastwithdrawalInfo */ export interface RespGetFastwithdrawalInfo { /** * * @type {number} * @memberof RespGetFastwithdrawalInfo */ code: number; /** * * @type {string} * @memberof RespGetFastwithdrawalInfo */ message?: string; /** * * @type {number} * @memberof RespGetFastwithdrawalInfo */ to_account_index: number; /** * * @type {string} * @memberof RespGetFastwithdrawalInfo */ withdraw_limit: string; /** * * @type {string} * @memberof RespGetFastwithdrawalInfo */ max_withdrawal_amount: string; } /** * Check if a given object implements the RespGetFastwithdrawalInfo interface. */ export function instanceOfRespGetFastwithdrawalInfo(value: object): value is RespGetFastwithdrawalInfo { if (!('code' in value) || value['code'] === undefined) return false; if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false; if (!('withdraw_limit' in value) || value['withdraw_limit'] === undefined) return false; if (!('max_withdrawal_amount' in value) || value['max_withdrawal_amount'] === undefined) return false; return true; } export function RespGetFastwithdrawalInfoFromJSON(json: any): RespGetFastwithdrawalInfo { return RespGetFastwithdrawalInfoFromJSONTyped(json, false); } export function RespGetFastwithdrawalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetFastwithdrawalInfo { if (json == null) { return json; } return { 'code': json['code'], 'message': json['message'] == null ? undefined : json['message'], 'to_account_index': json['to_account_index'], 'withdraw_limit': json['withdraw_limit'], 'max_withdrawal_amount': json['max_withdrawal_amount'], }; } export function RespGetFastwithdrawalInfoToJSON(value?: RespGetFastwithdrawalInfo | null): any { if (value == null) { return value; } return { 'code': value['code'], 'message': value['message'], 'to_account_index': value['to_account_index'], 'withdraw_limit': value['withdraw_limit'], 'max_withdrawal_amount': value['max_withdrawal_amount'], }; }