fromString static method

VerificationType fromString(
  1. String value
)

Implementation

static VerificationType fromString(String value) {
  return values.firstWhere(
    (type) => type.value == value,
    orElse: () => throw ArgumentError('Invalid verification type: $value'),
  );
}