Implementation
static XdrSCPNomination decode(XdrDataInputStream stream) {
XdrHash quorumSetHash = XdrHash.decode(stream);
int votesSize = stream.readInt();
List<XdrValue> votes = List<XdrValue>.empty(growable: true);
for (int i = 0; i < votesSize; i++) {
votes.add(XdrValue.decode(stream));
}
int acceptedSize = stream.readInt();
List<XdrValue> accepted = List<XdrValue>.empty(growable: true);
for (int i = 0; i < acceptedSize; i++) {
accepted.add(XdrValue.decode(stream));
}
return XdrSCPNomination(quorumSetHash, votes, accepted);
}