# File lib/quickbooks/model.rb, line 151
    def to_hash(include_read_only=false)
      hsh = SlashedHash.new.ordered!((include_read_only ? self.class.read_only + self.class.read_write : self.class.read_write).stringify_values)
      self.attributes(include_read_only).each do |key,value|
        if value.is_a?(Quickbooks::Model)
          hsh[key] = value.to_hash(include_read_only)
        else
          hsh[key] = value
        end
      end
      hsh
    end