fromString static method

PaystackChannel? fromString(
  1. String value
)

Returns a PaystackChannel from its raw string value, or null if no match is found.

Implementation

static PaystackChannel? fromString(String value) {
  for (final channel in PaystackChannel.values) {
    if (channel.value == value) return channel;
  }
  return null;
}