WebhookResponse constructor

WebhookResponse({
  1. WebhookResponse_FulfillmentResponse? fulfillmentResponse,
  2. PageInfo? pageInfo,
  3. SessionInfo? sessionInfo,
  4. Struct? payload,
  5. String? targetPage,
  6. 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;
}