anchor.diff:      request
           ..open('POST', url)
           ..setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
  -        ..onLoadEnd.listen((event) => completer.complete(JSON.decode(request.response)))
  +        ..onLoadEnd.listen((event) => completer.complete(handleLoginResponse(request)))
           ..send(encodeMap(requestBody));
   
       return ftr;
   
     }
   
  -  void handleLoginResponse(HttpRequest request) {
  +  Map handleLoginResponse(HttpRequest request) {
  +    Map parsedBody = new Map();
       if (request.status == 200 || request.status == 201) {
  -      Map parsedBody = JSON.decode(request.response);
  +      parsedBody = JSON.decode(request.response);
         List roles = [];
         parsedBody["data"]["user"]["roles"].forEach((element) => roles.add(element['name']));
         setCurrentUser({
  
positive.code:         ..open('POST', url)
          ..setRequestHeader('X-BAASBOX-APPCODE', appcode)
          ..setRequestHeader('Content-type', 'application/json')
          ..onLoadEnd.listen((e) => handleLoginResponse(request))
          ..send(json);
  
      return ftr;
  
negative.code:       print('Login error ' + request.response);
      }
  
      return parsedBody;
    }
  
    void logout() {
  