class LogicSerializer
  def self.load(logic)
    if logic.present?
      Logic.from_h(logic)
    end
  end

  def self.dump(logic)
    if logic.present?
      logic.to_h
    end
  end
end