DuplicateVoteEvidence constructor

DuplicateVoteEvidence({
  1. Vote? voteA,
  2. Vote? voteB,
  3. Int64? totalVotingPower,
  4. Int64? validatorPower,
  5. Timestamp? timestamp,
})

Implementation

factory DuplicateVoteEvidence({
  $5.Vote? voteA,
  $5.Vote? voteB,
  $fixnum.Int64? totalVotingPower,
  $fixnum.Int64? validatorPower,
  $3.Timestamp? timestamp,
}) {
  final _result = create();
  if (voteA != null) {
    _result.voteA = voteA;
  }
  if (voteB != null) {
    _result.voteB = voteB;
  }
  if (totalVotingPower != null) {
    _result.totalVotingPower = totalVotingPower;
  }
  if (validatorPower != null) {
    _result.validatorPower = validatorPower;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  return _result;
}