responseParser static method
Unwraps array responses, returning the inner element map and a flag.
Implementation
static (Map<String, dynamic>, bool) responseParser(dynamic response) {
if (response is List) {
return (response.first, true);
}
return (response, false);
}