toJson method
Convert the VoteWitnessContract object to a JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
return {
"owner_address": ownerAddress.toString(),
"votes": votes?.map((vote) => vote.toJson()).toList(),
"support": support,
};
}