decode static method
Implementation
static XdrRevokeSponsorshipType decode(XdrDataInputStream stream) {
int value = stream.readInt();
switch (value) {
case 0:
return REVOKE_SPONSORSHIP_LEDGER_ENTRY;
case 1:
return REVOKE_SPONSORSHIP_SIGNER;
default:
throw Exception("Unknown enum value: $value");
}
}