toJson method
Convert the VoteWitnessContractVote object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"vote_address": voteAddress.toString(),
"vote_count": voteCount.toString(),
};
}
Convert the VoteWitnessContractVote object to a JSON representation.
@override
Map<String, dynamic> toJson() {
return {
"vote_address": voteAddress.toString(),
"vote_count": voteCount.toString(),
};
}