hasError static method

bool hasError(
  1. Map<String, dynamic> response
)

Implementation

static bool hasError(Map<String, dynamic> response) {
  int error = (response['error'] as int?) ?? 0;
  return (error != 0);
}