anchor.diff:            }
             tmp.add("   * Added as queryParameter for each request.\n");
             tmp.add("   */\n");
  -          tmp.add("  $type get $key => _params[\"$key\"];\n");
  -          tmp.add("  set $key($type value) => _params[\"$key\"] = value;\n");
  +          tmp.add("  $type get $key => params[\"$key\"];\n");
  +          tmp.add("  set $key($type value) => params[\"$key\"] = value;\n");
           }
         });
       }
       tmp.add("\n  ${capitalize(_name)}([OAuth2 auth]) : super(auth) {\n");
  -    tmp.add("    _basePath = \"${_json["basePath"]}\";\n");
  -    tmp.add("    _rootUrl = \"${_json["rootUrl"]}\";\n");
  +    tmp.add("    basePath = \"${_json["basePath"]}\";\n");
  +    tmp.add("    rootUrl = \"${_json["rootUrl"]}\";\n");
       if (_json.containsKey("resources")) {
         _json["resources"].forEach((key, resource) {
           var subClassName = "${capitalize(key)}Resource";
  -        tmp.add("    _$key = new $subClassName._internal(this);\n");
  +        tmp.add("    _$key = new $subClassName(this);\n");
         });
       }
       tmp.add("  }\n");
  
positive.code:       });
      }
  
      tmp.add("\n  $className._internal(Client client) : super(client) {\n");
      if (data.containsKey("resources")) {
        data["resources"].forEach((key, resource) {
          var subClassName = "${capitalize(name)}${capitalize(key)}Resource";
          tmp.add("  _$key = new $subClassName._internal(client);\n");
        });
      }
      tmp.add("  }\n");
  
negative.code:     _name = _json["name"];
      _version = _json["version"];
      _libraryName = cleanName("${_name}_${_version}_api_client");
      _libraryBrowserName = cleanName("${_name}_${_version}_api_browser");
      _libraryConsoleName = cleanName("${_name}_${_version}_api_console");
    }
  
    void generateClient(String outputDirectory) {
      var folderName = "$outputDirectory/$_libraryName";
      (new Directory("$folderName/lib/src/common")).createSync(recursive: true);
      (new Directory("$folderName/lib/src/browser")).createSync(recursive: true);
      (new Directory("$folderName/lib/src/console")).createSync(recursive: true);
  
      (new File("$folderName/pubspec.yaml")).writeAsStringSync(_createPubspec());
  