Event constructor

Event({
  1. String? eventType,
  2. Any? payload,
  3. Timestamp? created,
  4. RuntimeUser? user,
  5. StringValue? handlerType,
  6. String? traceIdentifier,
  7. UUID? uniqueId,
  8. StringValue? oversizedPayloadName,
  9. ConfigurationScope? configurationScope,
  10. int? causalDepth,
})

Implementation

factory Event({
  $core.String? eventType,
  $0.Any? payload,
  $1.Timestamp? created,
  RuntimeUser? user,
  $2.StringValue? handlerType,
  $core.String? traceIdentifier,
  $3.UUID? uniqueId,
  $2.StringValue? oversizedPayloadName,
  $4.ConfigurationScope? configurationScope,
  $core.int? causalDepth,
}) {
  final result = create();
  if (eventType != null) result.eventType = eventType;
  if (payload != null) result.payload = payload;
  if (created != null) result.created = created;
  if (user != null) result.user = user;
  if (handlerType != null) result.handlerType = handlerType;
  if (traceIdentifier != null) result.traceIdentifier = traceIdentifier;
  if (uniqueId != null) result.uniqueId = uniqueId;
  if (oversizedPayloadName != null)
    result.oversizedPayloadName = oversizedPayloadName;
  if (configurationScope != null)
    result.configurationScope = configurationScope;
  if (causalDepth != null) result.causalDepth = causalDepth;
  return result;
}