decode static method

Implementation

static XdrClaimantType decode(XdrDataInputStream stream) {
  int value = stream.readInt();
  switch (value) {
    case 0:
      return CLAIMANT_TYPE_V0;
    default:
      throw Exception("Unknown enum value: $value");
  }
}