GoogleCloudDialogflowCxV3TestCase.fromJson constructor

GoogleCloudDialogflowCxV3TestCase.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3TestCase.fromJson(core.Map json_)
  : this(
      creationTime: json_['creationTime'] as core.String?,
      displayName: json_['displayName'] as core.String?,
      lastTestResult: json_.containsKey('lastTestResult')
          ? GoogleCloudDialogflowCxV3TestCaseResult.fromJson(
              json_['lastTestResult'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      name: json_['name'] as core.String?,
      notes: json_['notes'] as core.String?,
      tags: (json_['tags'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      testCaseConversationTurns:
          (json_['testCaseConversationTurns'] as core.List?)
              ?.map(
                (value) => GoogleCloudDialogflowCxV3ConversationTurn.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      testConfig: json_.containsKey('testConfig')
          ? GoogleCloudDialogflowCxV3TestConfig.fromJson(
              json_['testConfig'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );