fromInt static method

EPaymentMethodFlag fromInt(
  1. int flag
)

Implementation

static EPaymentMethodFlag fromInt(int flag) {
  switch (flag) {
    case 45:
      return EPaymentMethodFlag.ewallet;
    case 88:
      return EPaymentMethodFlag.creditCard;
    case 334:
      return EPaymentMethodFlag.mobileMoney;
    default:
      return EPaymentMethodFlag
          .ewallet; // Default to a safe value if unknown flag
  }
}