ToolResponse.fromJson constructor

ToolResponse.fromJson(
  1. Map json_
)

Implementation

ToolResponse.fromJson(core.Map json_)
  : this(
      displayName: json_['displayName'] as core.String?,
      id: json_['id'] as core.String?,
      response: json_.containsKey('response')
          ? json_['response'] as core.Map<core.String, core.dynamic>
          : null,
      tool: json_['tool'] as core.String?,
      toolsetTool: json_.containsKey('toolsetTool')
          ? ToolsetTool.fromJson(
              json_['toolsetTool'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );