toJson method

Map<String, Object> toJson()

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;
}