Condition constructor

Condition({
  1. RequestExecution? request,
  2. ResponseExecution? response,
  3. String? function,
  4. EventExecution? event,
})

Implementation

factory Condition({
  RequestExecution? request,
  ResponseExecution? response,
  $core.String? function,
  EventExecution? event,
}) {
  final $result = create();
  if (request != null) {
    $result.request = request;
  }
  if (response != null) {
    $result.response = response;
  }
  if (function != null) {
    $result.function = function;
  }
  if (event != null) {
    $result.event = event;
  }
  return $result;
}