toJson method

  1. @override
Object toJson()
override

Implementation

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