toJson method
Encodes this CockpitTestActionTemplate as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'type': kind.name,
if (locator != null) 'locator': locator!.toJson(),
if (condition != null) 'condition': condition!.toJson(),
for (final entry in values.entries)
entry.key.wireName: entry.value.toJson(),
...extensions,
};