def to_hash
      index_hash = Hash.new
      index_hash["json_claz"] = self.class.name
      index_hash["id"] = id
      index_hash["account_id"] = account_id
      index_hash["cat_id"] = cat_id
      index_hash["name"] = name
      index_hash["cattype"] = cattype
      index_hash["action"] = action
      index_hash["category"] = category
      index_hash["created_at"] = created_at
      index_hash
    end
def to_hash
      index_hash = Hash.new
      index_hash["json_claz"] = self.class.name
      index_hash["id"] = id
      index_hash["account_id"] = account_id
      index_hash["cat_id"] = cat_id
      index_hash["name"] = name
      index_hash["cattype"] = cattype
      index_hash["action"] = action
      index_hash["category"] = category
      index_hash["created_at"] = created_at
      index_hash
    end
Transform the ruby obj ->  to a Hash