GoogleCloudDialogflowCxV3Environment.fromJson constructor

GoogleCloudDialogflowCxV3Environment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Environment.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        testCasesConfig: json_.containsKey('testCasesConfig')
            ? GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig.fromJson(
                json_['testCasesConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        versionConfigs: json_.containsKey('versionConfigs')
            ? (json_['versionConfigs'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3EnvironmentVersionConfig
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        webhookConfig: json_.containsKey('webhookConfig')
            ? GoogleCloudDialogflowCxV3EnvironmentWebhookConfig.fromJson(
                json_['webhookConfig'] as core.Map<core.String, core.dynamic>)
            : null,
      );