fromString static method

PaymentOptionType? fromString(
  1. String? value
)

Get the PaymentOptionType from a String.

Implementation

static PaymentOptionType? fromString(String? value) {
  switch (value) {
    case 'SENDER':
      return sender;
    case 'RECEIVER':
      return recipient;
    case 'THIRD_PARTY':
      return thirdParty;
    case 'COLLECT':
      return collect;
    default:
      return null;
  }
}