toJson method
Encodes this CockpitTestStepTemplate as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'stepId': stepId,
if (description != null) 'description': description,
if (plane != null) 'plane': plane!.name,
if (timeoutMs != null) 'timeoutMs': timeoutMs,
if (evidence != null) 'evidence': evidence!.toJson(),
if (safety != null) 'safety': safety!.toJson(),
operation.wireName: operation.toJson(),
...extensions,
};