toJson method

  1. @override
Object toJson()
override

Implementation

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