src/rest-client/src/kip17/model/ApproveAllKip17Request.js
/**
     * Constructs a <code>ApproveAllKip17Request</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 {ApproveAllKip17Request} obj Optional instance to populate.
     * @return {ApproveAllKip17Request} The populated <code>ApproveAllKip17Request</code> instance.
     * @memberof ApproveAllKip17Request
     */
Constructs a ApproveAllKip17Request 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 {ApproveAllKip17Request} obj Optional instance to populate.
Constructs a ApproveAllKip17Request 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 { ApproveAllKip17Request } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new ApproveAllKip17Request()
            if (data.hasOwnProperty('from')) {
                obj.from = ApiClient.convertToType(data.from, 'String')
            }
            if (data.hasOwnProperty('to')) {
                obj.to = ApiClient.convertToType(data.to, 'String')
            }
            if (data.hasOwnProperty('approved')) {
                obj.approved = ApiClient.convertToType(data.approved, 'Boolean')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new ApproveAllKip17Request ( ) if ( data . hasOwnProperty ( 'from' ) ) { obj . from = ApiClient . convertToType ( data . from , 'String' ) } if ( data . hasOwnProperty ( 'to' ) ) { obj . to = ApiClient . convertToType ( data . to , 'String' ) } if ( data . hasOwnProperty ( 'approved' ) ) { obj . approved = ApiClient . convertToType ( data . approved , 'Boolean' ) } } return obj }
Constructs a <code>ApproveAllKip17Request</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > ApproveAllKip17Request< / code > from a plain JavaScript object optionally creating a new instance .