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

            if (data.hasOwnProperty('contacts')) {
                obj['contacts'] = ApiClient.convertToType(data['contacts'], [ContactDto]);
            }
            if (data.hasOwnProperty('group')) {
                obj['group'] = GroupDto.constructFromObject(data['group']);
            }
        }
        return obj;
    }
/**
     * Constructs a <code>GroupContactsDto</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/GroupContactsDto} obj Optional instance to populate.
     * @return {module:model/GroupContactsDto} The populated <code>GroupContactsDto</code> instance.
     */
Constructs a GroupContactsDto 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/GroupContactsDto} obj Optional instance to populate.
Constructs a GroupContactsDto 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 / GroupContactsDto } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new GroupContactsDto();
            if (data.hasOwnProperty('contacts')) {
                obj['contacts'] = ApiClient.convertToType(data['contacts'], [ContactDto]);
            }
            if (data.hasOwnProperty('group')) {
                obj['group'] = GroupDto.constructFromObject(data['group']);
            }
        }
        return obj;
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new GroupContactsDto ( ) ; if ( data . hasOwnProperty ( 'contacts' ) ) { obj [ 'contacts' ] = ApiClient . convertToType ( data [ 'contacts' ] , [ ContactDto ] ) ; } if ( data . hasOwnProperty ( 'group' ) ) { obj [ 'group' ] = GroupDto . constructFromObject ( data [ 'group' ] ) ; } } return obj ; }
Constructs a <code>GroupContactsDto</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > GroupContactsDto< / code > from a plain JavaScript object optionally creating a new instance .