toJsonString method

String toJsonString()

Converts the current Oauth2TokenEndpointAuthMethods to a jsonString

Implementation

String toJsonString() {
  switch (this) {
    case Oauth2TokenEndpointAuthMethods.clientSecretPost:
      return "client_secret_post";
    case Oauth2TokenEndpointAuthMethods.clientSecretBasic:
      return "client_secret_basic";

    default:
      throw UnimplementedError(
          "The toJsonString() method is not defined for the value $this");
  }
}