decode static method

APISecuritySchemeFlow? decode(
  1. String? flow
)

Implementation

static APISecuritySchemeFlow? decode(String? flow) {
  switch (flow) {
    case "accessCode":
      return APISecuritySchemeFlow.authorizationCode;
    case "password":
      return APISecuritySchemeFlow.password;
    case "implicit":
      return APISecuritySchemeFlow.implicit;
    case "application":
      return APISecuritySchemeFlow.application;
    default:
      return null;
  }
}