decode static method

Implementation

static XdrSorobanAuthorizedInvocation decode(XdrDataInputStream stream) {
  XdrSorobanAuthorizedFunction function =
      XdrSorobanAuthorizedFunction.decode(stream);

  int subSize = stream.readInt();
  List<XdrSorobanAuthorizedInvocation> subs =
      List<XdrSorobanAuthorizedInvocation>.empty(growable: true);
  for (int i = 0; i < subSize; i++) {
    subs.add(XdrSorobanAuthorizedInvocation.decode(stream));
  }
  return XdrSorobanAuthorizedInvocation(function, subs);
}