Fulfillment constructor

Fulfillment({
  1. Iterable<ResponseMessage>? messages,
  2. String? webhook,
  3. String? tag,
  4. Iterable<Fulfillment_SetParameterAction>? setParameterActions,
  5. Iterable<Fulfillment_ConditionalCases>? conditionalCases,
})

Implementation

factory Fulfillment({
  $core.Iterable<$17.ResponseMessage>? messages,
  $core.String? webhook,
  $core.String? tag,
  $core.Iterable<Fulfillment_SetParameterAction>? setParameterActions,
  $core.Iterable<Fulfillment_ConditionalCases>? conditionalCases,
}) {
  final _result = create();
  if (messages != null) {
    _result.messages.addAll(messages);
  }
  if (webhook != null) {
    _result.webhook = webhook;
  }
  if (tag != null) {
    _result.tag = tag;
  }
  if (setParameterActions != null) {
    _result.setParameterActions.addAll(setParameterActions);
  }
  if (conditionalCases != null) {
    _result.conditionalCases.addAll(conditionalCases);
  }
  return _result;
}