ShardTransferInfo constructor

ShardTransferInfo({
  1. int? shardId,
  2. Int64? from,
  3. Int64? to,
  4. bool? sync,
  5. int? toShardId,
})

Implementation

factory ShardTransferInfo({
  $core.int? shardId,
  $fixnum.Int64? from,
  $fixnum.Int64? to,
  $core.bool? sync,
  $core.int? toShardId,
}) {
  final $result = create();
  if (shardId != null) {
    $result.shardId = shardId;
  }
  if (from != null) {
    $result.from = from;
  }
  if (to != null) {
    $result.to = to;
  }
  if (sync != null) {
    $result.sync = sync;
  }
  if (toShardId != null) {
    $result.toShardId = toShardId;
  }
  return $result;
}