ReshardingInfo constructor

ReshardingInfo({
  1. int? shardId,
  2. Int64? peerId,
  3. ShardKey? shardKey,
  4. ReshardingDirection? direction,
})

Implementation

factory ReshardingInfo({
  $core.int? shardId,
  $fixnum.Int64? peerId,
  ShardKey? shardKey,
  ReshardingDirection? direction,
}) {
  final $result = create();
  if (shardId != null) {
    $result.shardId = shardId;
  }
  if (peerId != null) {
    $result.peerId = peerId;
  }
  if (shardKey != null) {
    $result.shardKey = shardKey;
  }
  if (direction != null) {
    $result.direction = direction;
  }
  return $result;
}