LocalShellAction.fromJson constructor

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

Implementation

factory LocalShellAction.fromJson(Map<String, dynamic> json) => LocalShellAction(
      command: List<String>.from(json['command'] as List),
      env: Map<String, String>.from(json['env'] as Map),
      timeoutMs: json['timeout_ms'] as int?,
      user: json['user'] as String?,
      workingDirectory: json['working_directory'] as String?,
    );