ExecAction.fromJson constructor

ExecAction.fromJson(
  1. Map<String, dynamic> json
)

Creates a ExecAction from JSON data.

Implementation

factory ExecAction.fromJson(Map<String, dynamic> json) {
  final tempCommandJson = json['command'];

  final List<String>? tempCommand =
      tempCommandJson != null ? List<String>.from(tempCommandJson) : null;

  return ExecAction(
    command: tempCommand,
  );
}