GoogleCloudDialogflowCxV3Experiment.fromJson constructor

GoogleCloudDialogflowCxV3Experiment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Experiment.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        definition: json_.containsKey('definition')
            ? GoogleCloudDialogflowCxV3ExperimentDefinition.fromJson(
                json_['definition'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        experimentLength: json_.containsKey('experimentLength')
            ? json_['experimentLength'] as core.String
            : null,
        lastUpdateTime: json_.containsKey('lastUpdateTime')
            ? json_['lastUpdateTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        result: json_.containsKey('result')
            ? GoogleCloudDialogflowCxV3ExperimentResult.fromJson(
                json_['result'] as core.Map<core.String, core.dynamic>)
            : null,
        rolloutConfig: json_.containsKey('rolloutConfig')
            ? GoogleCloudDialogflowCxV3RolloutConfig.fromJson(
                json_['rolloutConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        rolloutFailureReason: json_.containsKey('rolloutFailureReason')
            ? json_['rolloutFailureReason'] as core.String
            : null,
        rolloutState: json_.containsKey('rolloutState')
            ? GoogleCloudDialogflowCxV3RolloutState.fromJson(
                json_['rolloutState'] as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        variantsHistory: json_.containsKey('variantsHistory')
            ? (json_['variantsHistory'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3VariantsHistory.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );