ToolExecution.fromJson constructor

ToolExecution.fromJson(
  1. Map _json
)

Implementation

ToolExecution.fromJson(core.Map _json)
    : this(
        commandLineArguments: _json.containsKey('commandLineArguments')
            ? (_json['commandLineArguments'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        exitCode: _json.containsKey('exitCode')
            ? ToolExitCode.fromJson(
                _json['exitCode'] as core.Map<core.String, core.dynamic>)
            : null,
        toolLogs: _json.containsKey('toolLogs')
            ? (_json['toolLogs'] as core.List)
                .map<FileReference>((value) => FileReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        toolOutputs: _json.containsKey('toolOutputs')
            ? (_json['toolOutputs'] as core.List)
                .map<ToolOutputReference>((value) =>
                    ToolOutputReference.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );