src/rest-client/src/tokenHistory/model/MTContractSummary.js
/**
     * Constructs a <code>MTContractSummary</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 {MTContractSummary} obj Optional instance to populate.
     * @return {MTContractSummary} The populated <code>MTContractSummary</code> instance.
     * @memberof MTContractSummary
     */
Constructs a MTContractSummary 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 {MTContractSummary} obj Optional instance to populate.
Constructs a MTContractSummary 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 { MTContractSummary } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new MTContractSummary()
            if (data.hasOwnProperty('kind')) {
                obj.kind = ApiClient.convertToType(data.kind, 'String')
            }
            if (data.hasOwnProperty('contractAddress')) {
                obj.contractAddress = ApiClient.convertToType(data.contractAddress, 'String')
            }
            if (data.hasOwnProperty('updatedAt')) {
                obj.updatedAt = ApiClient.convertToType(data.updatedAt, 'Number')
            }
            if (data.hasOwnProperty('totalBalance')) {
                obj.totalBalance = ApiClient.convertToType(data.totalBalance, 'String')
            }
            if (data.hasOwnProperty('extras')) {
                obj.extras = ApiClient.convertToType(data.extras, Object)
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new MTContractSummary ( ) if ( data . hasOwnProperty ( 'kind' ) ) { obj . kind = ApiClient . convertToType ( data . kind , 'String' ) } if ( data . hasOwnProperty ( 'contractAddress' ) ) { obj . contractAddress = ApiClient . convertToType ( data . contractAddress , 'String' ) } if ( data . hasOwnProperty ( 'updatedAt' ) ) { obj . updatedAt = ApiClient . convertToType ( data . updatedAt , 'Number' ) } if ( data . hasOwnProperty ( 'totalBalance' ) ) { obj . totalBalance = ApiClient . convertToType ( data . totalBalance , 'String' ) } if ( data . hasOwnProperty ( 'extras' ) ) { obj . extras = ApiClient . convertToType ( data . extras , Object ) } } return obj }
Constructs a <code>MTContractSummary</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > MTContractSummary< / code > from a plain JavaScript object optionally creating a new instance .