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

            if (data.hasOwnProperty('company')) {
                obj['company'] = ApiClient.convertToType(data['company'], 'String');
            }
            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('emailAddresses')) {
                obj['emailAddresses'] = ApiClient.convertToType(data['emailAddresses'], ['String']);
            }
            if (data.hasOwnProperty('firstName')) {
                obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
            }
            if (data.hasOwnProperty('groupId')) {
                obj['groupId'] = ApiClient.convertToType(data['groupId'], 'String');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('lastName')) {
                obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
            }
            if (data.hasOwnProperty('metaData')) {
                obj['metaData'] = ApiClient.convertToType(data['metaData'], Object);
            }
            if (data.hasOwnProperty('optOut')) {
                obj['optOut'] = ApiClient.convertToType(data['optOut'], 'Boolean');
            }
            if (data.hasOwnProperty('tags')) {
                obj['tags'] = ApiClient.convertToType(data['tags'], ['String']);
            }
        }
        return obj;
    }
/**
     * Constructs a <code>ContactDto</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/ContactDto} obj Optional instance to populate.
     * @return {module:model/ContactDto} The populated <code>ContactDto</code> instance.
     */
Constructs a ContactDto 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/ContactDto} obj Optional instance to populate.
Constructs a ContactDto 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 / ContactDto } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new ContactDto();
            if (data.hasOwnProperty('company')) {
                obj['company'] = ApiClient.convertToType(data['company'], 'String');
            }
            if (data.hasOwnProperty('createdAt')) {
                obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'Date');
            }
            if (data.hasOwnProperty('emailAddresses')) {
                obj['emailAddresses'] = ApiClient.convertToType(data['emailAddresses'], ['String']);
            }
            if (data.hasOwnProperty('firstName')) {
                obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String');
            }
            if (data.hasOwnProperty('groupId')) {
                obj['groupId'] = ApiClient.convertToType(data['groupId'], 'String');
            }
            if (data.hasOwnProperty('id')) {
                obj['id'] = ApiClient.convertToType(data['id'], 'String');
            }
            if (data.hasOwnProperty('lastName')) {
                obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String');
            }
            if (data.hasOwnProperty('metaData')) {
                obj['metaData'] = ApiClient.convertToType(data['metaData'], Object);
            }
            if (data.hasOwnProperty('optOut')) {
                obj['optOut'] = ApiClient.convertToType(data['optOut'], 'Boolean');
            }
            if (data.hasOwnProperty('tags')) {
                obj['tags'] = ApiClient.convertToType(data['tags'], ['String']);
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new ContactDto ( ) ; if ( data . hasOwnProperty ( 'company' ) ) { obj [ 'company' ] = ApiClient . convertToType ( data [ 'company' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'createdAt' ) ) { obj [ 'createdAt' ] = ApiClient . convertToType ( data [ 'createdAt' ] , 'Date' ) ; } if ( data . hasOwnProperty ( 'emailAddresses' ) ) { obj [ 'emailAddresses' ] = ApiClient . convertToType ( data [ 'emailAddresses' ] , [ 'String' ] ) ; } if ( data . hasOwnProperty ( 'firstName' ) ) { obj [ 'firstName' ] = ApiClient . convertToType ( data [ 'firstName' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'groupId' ) ) { obj [ 'groupId' ] = ApiClient . convertToType ( data [ 'groupId' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'id' ) ) { obj [ 'id' ] = ApiClient . convertToType ( data [ 'id' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'lastName' ) ) { obj [ 'lastName' ] = ApiClient . convertToType ( data [ 'lastName' ] , 'String' ) ; } if ( data . hasOwnProperty ( 'metaData' ) ) { obj [ 'metaData' ] = ApiClient . convertToType ( data [ 'metaData' ] , Object ) ; } if ( data . hasOwnProperty ( 'optOut' ) ) { obj [ 'optOut' ] = ApiClient . convertToType ( data [ 'optOut' ] , 'Boolean' ) ; } if ( data . hasOwnProperty ( 'tags' ) ) { obj [ 'tags' ] = ApiClient . convertToType ( data [ 'tags' ] , [ 'String' ] ) ; } } return obj ; }
Constructs a <code>ContactDto</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > ContactDto< / code > from a plain JavaScript object optionally creating a new instance .