Add a method to serialize both Indicator and Scorecard objects