isSuccessResponse method
Implementation
bool isSuccessResponse(Map<String, dynamic>? payload) {
if (payload != null) {
if (payload.containsKey('code')) {
if (payload['code'] == 2000) {
return true;
} else {
return false;
}
} else {
return false;
}
} else {
throw 'payload null';
}
}