@override Object toJson() => { 'objectiveSpec': ?objectiveSpec?.toJson(), 'notificationSpec': ?notificationSpec?.toJson(), 'outputSpec': ?outputSpec?.toJson(), };