    # File lib/chef/role.rb, line 163
        def to_hash
          env_run_lists_without_default = @env_run_lists.dup
          env_run_lists_without_default.delete("_default")
          result = {
            "name" => @name,
            "description" => @description,
            'json_class' => self.class.name,
            "default_attributes" => @default_attributes,
            "override_attributes" => @override_attributes,
            "chef_type" => "role",
            "run_list" => run_list,
            "env_run_lists" => env_run_lists_without_default
          }
          result["_rev"] = couchdb_rev if couchdb_rev
          result
        end