toJsonString method

String toJsonString()

Converts the current Oauth2SigningAlg to a jsonString

Implementation

String toJsonString() {
  switch (this) {
    case Oauth2SigningAlg.RS256:
      return "RS256";

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