serialize method
Serializes the object to a map.
Implementation
@override
Map<String, dynamic> serialize() {
return {
"authorizedVoters": authorizedVoters.map((e) => e.serialize()).toList(),
"authorizedWithdrawer": authorizedWithdrawer,
"commission": commission,
"epochCredits": epochCredits.map((e) => e.serialize()).toList(),
"lastTimestamp": lastTimestamp.serialize(),
"nodePubkey": nodePubkey,
"priorVoters": priorVoter.serialize(),
"rootSlot": rootSlot,
"votes": votes.map((e) => e.serialize()).toList()
};
}