decode static method

Implementation

static XdrAccountEntry decode(XdrDataInputStream stream) {
  XdrAccountID accountID = XdrAccountID.decode(stream);
  XdrInt64 balance = XdrInt64.decode(stream);
  XdrSequenceNumber seqNum = XdrSequenceNumber.decode(stream);
  XdrUint32 numSubEntries = XdrUint32.decode(stream);
  XdrAccountID? inflationDest;
  int inflationDestPresent = stream.readInt();
  if (inflationDestPresent != 0) {
    inflationDest = XdrAccountID.decode(stream);
  }
  XdrUint32 flags = XdrUint32.decode(stream);
  XdrString32 homeDomain = XdrString32.decode(stream);
  XdrThresholds thresholds = XdrThresholds.decode(stream);
  int signerssize = stream.readArrayLength();
  List<XdrSigner> signers = List<XdrSigner>.empty(growable: true);
  for (int i = 0; i < signerssize; i++) {
    signers.add(XdrSigner.decode(stream));
  }
  XdrAccountEntryExt ext = XdrAccountEntryExt.decode(stream);
  return XdrAccountEntry(
    accountID,
    balance,
    seqNum,
    numSubEntries,
    inflationDest,
    flags,
    homeDomain,
    thresholds,
    signers,
    ext,
  );
}