toJson method
Implementation
@override
Object toJson() => {
if (objectiveSpec != null) 'objectiveSpec': objectiveSpec!.toJson(),
if (notificationSpec != null)
'notificationSpec': notificationSpec!.toJson(),
if (outputSpec != null) 'outputSpec': outputSpec!.toJson(),
};