anchor.diff:      // Create common library files
   
       (new File("$folderName/lib/$_libraryName.dart")).writeAsStringSync(_createLibrary());
  -    
  +
       (new File("$folderName/lib/src/common/client.dart")).writeAsStringSync(_createClientClass());
  -    
  +
       (new File("$folderName/lib/src/common/schemas.dart")).writeAsStringSync(_createSchemas());
   
       (new File("$folderName/lib/src/common/resources.dart")).writeAsStringSync(_createResources());
  -    
  +
       // Create browser versions of the libraries
       (new File("$folderName/lib/$_libraryBrowserName.dart")).writeAsStringSync(_createBrowserLibrary());
   
  
positive.code: 
    String _createPubspec() {
      return """
  name: $_libraryBrowserName
  version: $_clientVersion
  description: Auto-generated client library for accessing the $_name $_version API
  homepage: https://github.com/dart-gde/discovery_api_dart_client_generator
  
negative.code:     } else {
        path ="\$rootUrl\${basePath.substring(1)}\$requestUrl";
      }
  
      var url = new oauth2.UrlPattern(path).generate(urlParams, queryParams);
  
      Future clientCallback(http.Client client) {
        var clientCompleter = new Completer();
        if (method.toLowerCase() == "get") {
          client.get(url).then((http.Response response) {
            var data = JSON.parse(response.body);
            completer.complete(data);
          }, onError: (AsyncError error) {
            clientCompleter.completeError(new APIRequestException("onError: \$error"));
            completer.completeError(new APIRequestException("onError: \$error"));
          });
  
        } else if (method.toLowerCase() == "post") {
          client.post(url, fields: JSON.parse(body)).then((http.Response response) {
            var data = JSON.parse(response.body);
            completer.complete(data);
          }, onError: (AsyncError error) {
            clientCompleter.completeError(new APIRequestException("onError: \$error"));
            completer.completeError(new APIRequestException("onError: \$error"));
          });
  
        } else {
          clientCompleter.completeError(new APIRequestException("\$method Not implemented"));
          completer.completeError(new APIRequestException("\$method Not implemented"));
        }
  
        return clientCompleter.future;
      };
  
      _auth.withClient(clientCallback);
  
  
      return completer.future;
    }
  