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