static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new DomainDto();

            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('domain')) {
                obj['domain'] = ApiClient.convertToType(data['domain'], 'String');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('isVerified')) {
                obj['isVerified'] = ApiClient.convertToType(data['isVerified'], 'Boolean');
            }
            if (data.hasOwnProperty('updatedAt')) {
                obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date');
            }
            if (data.hasOwnProperty('userId')) {
                obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
            }
            if (data.hasOwnProperty('verificationToken')) {
                obj['verificationToken'] = ApiClient.convertToType(data['verificationToken'], 'String');
            }
        }
        return obj;
    }
/**
     * Constructs a <code>DomainDto</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 {module:model/DomainDto} obj Optional instance to populate.
     * @return {module:model/DomainDto} The populated <code>DomainDto</code> instance.
     */
Constructs a DomainDto 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 {module:model/DomainDto} obj Optional instance to populate.
Constructs a DomainDto 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 { module : model / DomainDto } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new DomainDto();
            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('domain')) {
                obj['domain'] = ApiClient.convertToType(data['domain'], 'String');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('isVerified')) {
                obj['isVerified'] = ApiClient.convertToType(data['isVerified'], 'Boolean');
            }
            if (data.hasOwnProperty('updatedAt')) {
                obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'Date');
            }
            if (data.hasOwnProperty('userId')) {
                obj['userId'] = ApiClient.convertToType(data['userId'], 'String');
            }
            if (data.hasOwnProperty('verificationToken')) {
                obj['verificationToken'] = ApiClient.convertToType(data['verificationToken'], 'String');
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new DomainDto ( ) ; if ( data . hasOwnProperty ( 'createdAt' ) ) { obj [ 'createdAt' ] = ApiClient . convertToType ( data [ 'createdAt' ] , 'Date' ) ; } if ( data . hasOwnProperty ( 'domain' ) ) { obj [ 'domain' ] = ApiClient . convertToType ( data [ 'domain' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'id' ) ) { obj [ 'id' ] = ApiClient . convertToType ( data [ 'id' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'isVerified' ) ) { obj [ 'isVerified' ] = ApiClient . convertToType ( data [ 'isVerified' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'updatedAt' ) ) { obj [ 'updatedAt' ] = ApiClient . convertToType ( data [ 'updatedAt' ] , 'Date' ) ; } if ( data . hasOwnProperty ( 'userId' ) ) { obj [ 'userId' ] = ApiClient . convertToType ( data [ 'userId' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'verificationToken' ) ) { obj [ 'verificationToken' ] = ApiClient . convertToType ( data [ 'verificationToken' ] , 'String' ) ; } } return obj ; }
Constructs a <code>DomainDto</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > DomainDto< / code > from a plain JavaScript object optionally creating a new instance .