errorThrower function
Implementation
void errorThrower(String response){
Map<String,dynamic> parsed = jsonDecode(response);
if(parsed["error"] != null){
throw response;
}
}
void errorThrower(String response){
Map<String,dynamic> parsed = jsonDecode(response);
if(parsed["error"] != null){
throw response;
}
}