getDataByNav(dataNav: string, response: any) {
const navs = dataNav.split('.');
let lastObj = Object.assign([], response);
if (navs && navs.length > 0) {
for (let i = 0; i < navs.length; i++) {
lastObj = lastObj[navs[i].toString()]
}
}
return lastObj;
}