DuplicateVoteEvidence constructor
DuplicateVoteEvidence({})
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;
}