toJson method
Converts a ExecAction instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempCommand = command;
if (tempCommand != null) {
jsonData['command'] = tempCommand;
}
return jsonData;
}