toMap method
Implementation
Map<String, dynamic> toMap() => {
'enabled': enabled,
if (description != null) 'description': description,
'stop_on_failure': stopOnFailure,
if (runPipeline != null) 'run_pipeline': runPipeline,
if (steps.isNotEmpty) 'steps': steps.map((s) => s.toMap()).toList(),
};