source/node/archiveManagement/ArchiveSource.js
function rehydrate(dehydratedString) {
    const { name, id, sourceCredentials, archiveCredentials, type, colour, order } = JSON.parse(dehydratedString);
    const source = new ArchiveSource(name, sourceCredentials, archiveCredentials, { id, type });
    source.type = type;
    if (colour) {
        source._colour = colour;
    }
    if (order >= 0) {
        source.order = order;
    }
    return source;
}
function rehydrate(dehydratedString) {
    const { name, id, sourceCredentials, archiveCredentials, type, colour, order } = JSON.parse(dehydratedString);
    const source = new ArchiveSource(name, sourceCredentials, archiveCredentials, { id, type });
    source.type = type;
    if (colour) {
        source._colour = colour;
    }
    if (order >= 0) {
        source.order = order;
    }
    return source;
}
function rehydrate ( dehydratedString ) { const { name , id , sourceCredentials , archiveCredentials , type , colour , order } = JSON . parse ( dehydratedString ) ; const source = new ArchiveSource ( name , sourceCredentials , archiveCredentials , { id , type } ) ; source . type = type ; if ( colour ) { source . _colour = colour ; } if ( order >= 0 ) { source . order = order ; } return source ; }
Rehydrate a dehydrated archive source
@param {String} dehydratedString A dehydrated archive source
@returns {ArchiveSource} The rehydrated source
@memberof ArchiveSource
@static
Rehydrate a dehydrated archive source