toJson method

  1. @override
Object toJson()
override

Implementation

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