WebhookResponse constructor
WebhookResponse({
- WebhookResponse_FulfillmentResponse? fulfillmentResponse,
- PageInfo? pageInfo,
- SessionInfo? sessionInfo,
- Struct? payload,
- String? targetPage,
- String? targetFlow,
Implementation
factory WebhookResponse({
WebhookResponse_FulfillmentResponse? fulfillmentResponse,
PageInfo? pageInfo,
SessionInfo? sessionInfo,
$16.Struct? payload,
$core.String? targetPage,
$core.String? targetFlow,
}) {
final _result = create();
if (fulfillmentResponse != null) {
_result.fulfillmentResponse = fulfillmentResponse;
}
if (pageInfo != null) {
_result.pageInfo = pageInfo;
}
if (sessionInfo != null) {
_result.sessionInfo = sessionInfo;
}
if (payload != null) {
_result.payload = payload;
}
if (targetPage != null) {
_result.targetPage = targetPage;
}
if (targetFlow != null) {
_result.targetFlow = targetFlow;
}
return _result;
}