getServiceFromLabel method

ServiceType? getServiceFromLabel(
  1. String label
)

Implementation

ServiceType? getServiceFromLabel(String label) {
  switch (label) {
    case "(BVN) Bank Verification Number":
      return ServiceType.bvnVerification;
    case "(NIN) National Identity Number":
      return ServiceType.ninVerification;
    case "(PVC) Permanent Voters Card":
      return ServiceType.pvcVerification;
    case "(DL) Drivers Licence":
      return ServiceType.dlVerification;
    case "(NIP) Nigerian International Passport":
      return ServiceType.nipVerification;
  }
}