TrackingEvent constructor

TrackingEvent({
  1. String? type,
  2. StringValue? category,
  3. Timestamp? timestamp,
  4. UserId? userId,
  5. AccountId? accountId,
  6. Iterable<TrackingData>? data,
})

Implementation

factory TrackingEvent({
  $core.String? type,
  $0.StringValue? category,
  $1.Timestamp? timestamp,
  $2.UserId? userId,
  $2.AccountId? accountId,
  $core.Iterable<TrackingData>? data,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (category != null) result.category = category;
  if (timestamp != null) result.timestamp = timestamp;
  if (userId != null) result.userId = userId;
  if (accountId != null) result.accountId = accountId;
  if (data != null) result.data.addAll(data);
  return result;
}