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