Event constructor

Event({
  1. String? routingKey,
  2. Kref? kref,
  3. String? timestamp,
  4. String? author,
  5. String? tenantId,
  6. Iterable<MapEntry<String, String>>? details,
  7. String? username,
  8. String? cursor,
})

Implementation

factory Event({
  $core.String? routingKey,
  Kref? kref,
  $core.String? timestamp,
  $core.String? author,
  $core.String? tenantId,
  $core.Iterable<$core.MapEntry<$core.String, $core.String>>? details,
  $core.String? username,
  $core.String? cursor,
}) {
  final result = create();
  if (routingKey != null) result.routingKey = routingKey;
  if (kref != null) result.kref = kref;
  if (timestamp != null) result.timestamp = timestamp;
  if (author != null) result.author = author;
  if (tenantId != null) result.tenantId = tenantId;
  if (details != null) result.details.addEntries(details);
  if (username != null) result.username = username;
  if (cursor != null) result.cursor = cursor;
  return result;
}