ProtoVote_Data constructor

ProtoVote_Data({
  1. Int64? round,
  2. int? step,
  3. List<int>? parentHash,
  4. List<int>? votedHash,
  5. bool? turnOffline,
  6. int? upgrade,
})

Implementation

factory ProtoVote_Data({
  $fixnum.Int64? round,
  $core.int? step,
  $core.List<$core.int>? parentHash,
  $core.List<$core.int>? votedHash,
  $core.bool? turnOffline,
  $core.int? upgrade,
}) {
  final _result = create();
  if (round != null) {
    _result.round = round;
  }
  if (step != null) {
    _result.step = step;
  }
  if (parentHash != null) {
    _result.parentHash = parentHash;
  }
  if (votedHash != null) {
    _result.votedHash = votedHash;
  }
  if (turnOffline != null) {
    _result.turnOffline = turnOffline;
  }
  if (upgrade != null) {
    _result.upgrade = upgrade;
  }
  return _result;
}