    # File lib/chef/environment.rb, line 150
        def to_hash
          result = {
            "name" => @name,
            "description" => @description,
            "cookbook_versions" =>  @cookbook_versions,
            "json_class" => self.class.name,
            "chef_type" => "environment",
            "default_attributes" => @default_attributes,
            "override_attributes" => @override_attributes
          }
          result["_rev"] = couchdb_rev if couchdb_rev
          result
        end