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