ListEventsRequest constructor
ListEventsRequest({})
Implementation
factory ListEventsRequest({
$fixnum.Int64? sequence,
$core.int? limit,
$core.bool? asc,
$core.String? editorUserId,
$core.Iterable<$core.String>? eventTypes,
$core.String? aggregateId,
$core.Iterable<$core.String>? aggregateTypes,
$core.String? resourceOwner,
@$core.Deprecated('This field is deprecated.')
$6.Timestamp? creationDate,
ListEventsRequest_creation_date_range? range,
$6.Timestamp? from,
}) {
final $result = create();
if (sequence != null) {
$result.sequence = sequence;
}
if (limit != null) {
$result.limit = limit;
}
if (asc != null) {
$result.asc = asc;
}
if (editorUserId != null) {
$result.editorUserId = editorUserId;
}
if (eventTypes != null) {
$result.eventTypes.addAll(eventTypes);
}
if (aggregateId != null) {
$result.aggregateId = aggregateId;
}
if (aggregateTypes != null) {
$result.aggregateTypes.addAll(aggregateTypes);
}
if (resourceOwner != null) {
$result.resourceOwner = resourceOwner;
}
if (creationDate != null) {
// ignore: deprecated_member_use_from_same_package
$result.creationDate = creationDate;
}
if (range != null) {
$result.range = range;
}
if (from != null) {
$result.from = from;
}
return $result;
}