# File lib/quickbooks/model.rb, line 139
    def to_dirty_hash
      hsh = SlashedHash.new.ordered!(self.class.read_write.stringify_values)
      self.dirty_attributes.each do |key,value|
        if value.is_a?(Quickbooks::Model)
          hsh[key] = value.to_dirty_hash
        else
          hsh[key] = value
        end
      end
      hsh
    end