unMarshallErrorResponse function
Extracts the code from the body of the response
Implementation
int unMarshallErrorResponse(Map<String, dynamic>? body) {
if (body != null && body.containsKey('code')) {
final String code = body['code']?.toString() ?? '';
return int.tryParse(code) ?? 11;
} else {
return 11;
}
}