fromString static method

ResponseSecurityCodes fromString(
  1. String? s
)

Implementation

static ResponseSecurityCodes fromString(String? s) {
  switch (s) {
    case 'tampered':
      return ResponseSecurityCodes.tampered;
    case 'notTampered':
      return ResponseSecurityCodes.notTampered;
    case 'missingParametersError':
      return ResponseSecurityCodes.missingParametersError;
    case 'unavailable':
      return ResponseSecurityCodes.unavailable;
    case 'genericError':
    default:
      return ResponseSecurityCodes.genericError;
  }
}