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