GoogleCloudDialogflowCxV3TestCaseResult.fromJson constructor

GoogleCloudDialogflowCxV3TestCaseResult.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3TestCaseResult.fromJson(core.Map json_)
    : this(
        conversationTurns: json_.containsKey('conversationTurns')
            ? (json_['conversationTurns'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3ConversationTurn.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        environment: json_.containsKey('environment')
            ? json_['environment'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        testResult: json_.containsKey('testResult')
            ? json_['testResult'] as core.String
            : null,
        testTime: json_.containsKey('testTime')
            ? json_['testTime'] as core.String
            : null,
      );