CatchUp constructor

CatchUp({
  1. CatchUpId? id,
  2. CatchUp_Request? request,
  3. Timestamp? whenLastRead,
  4. CatchUpStatus? status,
  5. int? totalShards,
  6. Iterable<int>? affectedShard,
})

Implementation

factory CatchUp({
  CatchUpId? id,
  CatchUp_Request? request,
  $4.Timestamp? whenLastRead,
  CatchUpStatus? status,
  $core.int? totalShards,
  $core.Iterable<$core.int>? affectedShard,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (request != null) {
    _result.request = request;
  }
  if (whenLastRead != null) {
    _result.whenLastRead = whenLastRead;
  }
  if (status != null) {
    _result.status = status;
  }
  if (totalShards != null) {
    _result.totalShards = totalShards;
  }
  if (affectedShard != null) {
    _result.affectedShard.addAll(affectedShard);
  }
  return _result;
}