getDataAsObj<T extends NUIEnt> method

T? getDataAsObj<T extends NUIEnt>(
  1. NUIEntMapper<T> entity
)

Implementation

T? getDataAsObj<T extends NUIEnt>(NUIEntMapper<T> entity){
  try{
    return entity.toEntity(data!);
  }
  catch(e){
    logNUI("NUIStandardHttpResponse", "Failed to parse body to object with error : $e");
    return null;
  }
}