toRedirectActionStatusCodeEnum method

RedirectActionStatusCodeEnum toRedirectActionStatusCodeEnum()

Implementation

RedirectActionStatusCodeEnum toRedirectActionStatusCodeEnum() {
  switch (this) {
    case 'HTTP_301':
      return RedirectActionStatusCodeEnum.http_301;
    case 'HTTP_302':
      return RedirectActionStatusCodeEnum.http_302;
  }
  throw Exception('$this is not known in enum RedirectActionStatusCodeEnum');
}