GoogleCloudDialogflowCxV3Fulfillment.fromJson constructor

GoogleCloudDialogflowCxV3Fulfillment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowCxV3Fulfillment.fromJson(core.Map json_)
    : this(
        advancedSettings: json_.containsKey('advancedSettings')
            ? GoogleCloudDialogflowCxV3AdvancedSettings.fromJson(
                json_['advancedSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        conditionalCases: json_.containsKey('conditionalCases')
            ? (json_['conditionalCases'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3FulfillmentConditionalCases
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        enableGenerativeFallback:
            json_.containsKey('enableGenerativeFallback')
                ? json_['enableGenerativeFallback'] as core.bool
                : null,
        messages: json_.containsKey('messages')
            ? (json_['messages'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3ResponseMessage.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        returnPartialResponses: json_.containsKey('returnPartialResponses')
            ? json_['returnPartialResponses'] as core.bool
            : null,
        setParameterActions: json_.containsKey('setParameterActions')
            ? (json_['setParameterActions'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tag: json_.containsKey('tag') ? json_['tag'] as core.String : null,
        webhook: json_.containsKey('webhook')
            ? json_['webhook'] as core.String
            : null,
      );