decode static method

Implementation

static XdrPathPaymentStrictSendOp decode(XdrDataInputStream stream) {
  XdrAsset sendAsset = XdrAsset.decode(stream);
  XdrInt64 sendMax = XdrInt64.decode(stream);
  XdrMuxedAccount destination = XdrMuxedAccount.decode(stream);
  XdrAsset destAsset = XdrAsset.decode(stream);
  XdrInt64 destAmount = XdrInt64.decode(stream);

  int pathsize = stream.readInt();
  List<XdrAsset> path = List<XdrAsset>.empty(growable: true);
  for (int i = 0; i < pathsize; i++) {
    path.add(XdrAsset.decode(stream));
  }

  return XdrPathPaymentStrictSendOp(
      sendAsset, sendMax, destination, destAsset, destAmount, path);
}