src/rest-client/src/kip17/model/ErrorResponse.js
/**
     * Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.
     * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
     * @param {Object} data The plain JavaScript object bearing properties of interest.
     * @param {ErrorResponse} obj Optional instance to populate.
     * @return {ErrorResponse} The populated <code>ErrorResponse</code> instance.
     * @memberof ErrorResponse
     */
Constructs a ErrorResponse from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
@param {Object} data The plain JavaScript object bearing properties of interest.
@param {ErrorResponse} obj Optional instance to populate.
Constructs a ErrorResponse from a plain JavaScript object optionally creating a new instance . Copies all relevant properties from data to obj if supplied or a new instance if not . @param { Object } data The plain JavaScript object bearing properties of interest . @param { ErrorResponse } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new ErrorResponse()
            if (data.hasOwnProperty('code')) {
                obj.code = ApiClient.convertToType(data.code, 'Number')
            }
            if (data.hasOwnProperty('message')) {
                obj.message = ApiClient.convertToType(data.message, 'String')
            }
            if (data.hasOwnProperty('requestId')) {
                obj.requestId = ApiClient.convertToType(data.requestId, 'String')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new ErrorResponse ( ) if ( data . hasOwnProperty ( 'code' ) ) { obj . code = ApiClient . convertToType ( data . code , 'Number' ) } if ( data . hasOwnProperty ( 'message' ) ) { obj . message = ApiClient . convertToType ( data . message , 'String' ) } if ( data . hasOwnProperty ( 'requestId' ) ) { obj . requestId = ApiClient . convertToType ( data . requestId , 'String' ) } } return obj }
Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > ErrorResponse< / code > from a plain JavaScript object optionally creating a new instance .