GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput.fromJson constructor

GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput.fromJson(
    core.Map json_)
    : this(
        currentPage: json_.containsKey('currentPage')
            ? GoogleCloudDialogflowCxV3Page.fromJson(
                json_['currentPage'] as core.Map<core.String, core.dynamic>)
            : null,
        diagnosticInfo: json_.containsKey('diagnosticInfo')
            ? json_['diagnosticInfo'] as core.Map<core.String, core.dynamic>
            : null,
        differences: json_.containsKey('differences')
            ? (json_['differences'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3TestRunDifference.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sessionParameters: json_.containsKey('sessionParameters')
            ? json_['sessionParameters']
                as core.Map<core.String, core.dynamic>
            : null,
        status: json_.containsKey('status')
            ? GoogleRpcStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        textResponses: json_.containsKey('textResponses')
            ? (json_['textResponses'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3ResponseMessageText.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        triggeredIntent: json_.containsKey('triggeredIntent')
            ? GoogleCloudDialogflowCxV3Intent.fromJson(
                json_['triggeredIntent']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );