import { Iparse } from "../../../@types/helper/methods" ; import { Base , Request } from "../../utils" ; /**
 * Convert a JSON string to a base object
 */ export const parse = < T = Base > ( jsonString ) : T => { try { let obj = JSON . parse ( jsonString ) ; let base = new Base ( obj . props ) ; base . response = obj . response ; base . status = obj . status ; base . targetInfo = obj . targetInfo ; Request . updateDataObject ( base , false ) ; return base as any ; } catch { } return null ; } ;