ListEventsRequest constructor

ListEventsRequest({
  1. Int64? sequence,
  2. int? limit,
  3. bool? asc,
  4. String? editorUserId,
  5. Iterable<String>? eventTypes,
  6. String? aggregateId,
  7. Iterable<String>? aggregateTypes,
  8. String? resourceOwner,
  9. @Deprecated('This field is deprecated.') Timestamp? creationDate,
  10. ListEventsRequest_creation_date_range? range,
  11. Timestamp? from,
})

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;
}