decode static method

Implementation

static XdrCreateClaimableBalanceResult decode(XdrDataInputStream stream) {
  XdrCreateClaimableBalanceResult decoded = XdrCreateClaimableBalanceResult(
      XdrCreateClaimableBalanceResultCode.decode(stream));
  switch (decoded.discriminant) {
    case XdrCreateClaimableBalanceResultCode.CREATE_CLAIMABLE_BALANCE_SUCCESS:
      decoded.balanceID = XdrClaimableBalanceID.decode(stream);
      break;
    default:
      break;
  }
  return decoded;
}