decode static method

Implementation

static XdrLedgerEntryExt decode(XdrDataInputStream stream) {
  XdrLedgerEntryExt decodedLedgerEntryExt =
      XdrLedgerEntryExt(stream.readInt());
  switch (decodedLedgerEntryExt.discriminant) {
    case 0:
      break;
    case 1:
      decodedLedgerEntryExt.ledgerEntryExtensionV1 =
          XdrLedgerEntryV1.decode(stream);
      break;
  }
  return decodedLedgerEntryExt;
}