anchor.diff:  
       return request(requestUrl, method, body: multiPartBody.toString(), contentType: "multipart/mixed; boundary=\\"\$_boundary\\"", urlParams: urlParams, queryParams: queryParams);
     }
  +
  +""");
  +
  +    _writeMixins(sink);
  +
  +    sink.write("""
   }
   
   /// Base-class for all API Resources
  
positive.code:       sink.write("/** ${_json["description"]} */\n");
      }
      sink.write("class ${capitalize(_name)} extends BrowserClient {\n");
      if (_json.containsKey("resources")) {
        sink.write("\n");
        _json["resources"].forEach((key, resource) {
          var subClassName = "${capitalize(key)}Resource_";
          sink.write("  $subClassName _$key;\n");
          sink.write("  $subClassName get $key => _$key;\n");
        });
      }
      if(_json.containsKey("auth") && _json["auth"].containsKey("oauth2") && _json["auth"]["oauth2"].containsKey("scopes")) {
        _json["auth"]["oauth2"]["scopes"].forEach((scope, description) {
          var p = scope.lastIndexOf("/");
  
negative.code:   }
  
    void _writeResources(StringSink sink) {
      sink.writeln("part of $_libraryName;");
      sink.writeln();
  
      if (_json.containsKey("resources")) {
        _json["resources"].forEach((key, resource) {
          _writeResourceClass(sink, key, resource);
        });
      }
    }
  
    void _writeMixins(StringSink sink) {
      sink.writeln("""
    //
    // Resources
    //
  """);
      if (_json.containsKey("resources")) {
        _json["resources"].forEach((key, resource) {
          var subClassName = "${capitalize(key)}Resource_";
          sink.writeln("  $subClassName get $key => new $subClassName(this);");
        });
      }
      sink.writeln();
  
      sink.writeln("""
    //
    // Parameters
    //""");
      if (_json.containsKey("parameters")) {
        _json["parameters"].forEach((key, param) {
          var type = parameterType[param["type"]];
          if (param.containsKey("format")) {
            if (param["type"] == "string" && param["format"] == "int64") {
              type = "core.int";
            }
          }
          if (type != null) {
            sink.write("\n");
            sink.write("  /**\n");
            if (param.containsKey("description")) {
              sink.write("   * ${param["description"]}\n");
            }
            sink.write("   * Added as queryParameter for each request.\n");
            sink.write("   */\n");
            sink.write("  $type get $key => params[\"$key\"];\n");
            sink.write("  set $key($type value) => params[\"$key\"] = value;\n");
          }
        });
      }
    }
  