decode static method
Implementation
static XdrAccountEntryV2 decode(XdrDataInputStream stream) {
XdrUint32 xNumSponsored = XdrUint32.decode(stream);
XdrUint32 xNumSponsoring = XdrUint32.decode(stream);
int pSize = stream.readInt();
List<XdrAccountID?> xSignerSponsoringIDs = List<XdrAccountID?>.empty(growable: true);
for (int i = 0; i < pSize; i++) {
int sponsoringIDPresent = stream.readInt();
if (sponsoringIDPresent != 0) {
xSignerSponsoringIDs.add(XdrAccountID.decode(stream));
} else {
xSignerSponsoringIDs.add(null);
}
}
XdrAccountEntryV2Ext xExt = XdrAccountEntryV2Ext.decode(stream);
return XdrAccountEntryV2(
xNumSponsored, xNumSponsoring, xSignerSponsoringIDs, xExt);
}