toJsonString method

String toJsonString()

Converts the current Oauth2Claims to a jsonString

Implementation

String toJsonString() {
  switch (this) {
    case Oauth2Claims.aud:
      return "aud";
    case Oauth2Claims.exp:
      return "exp";
    case Oauth2Claims.iat:
      return "iat";
    case Oauth2Claims.iss:
      return "iss";
    case Oauth2Claims.realmid:
      return "realmid";
    case Oauth2Claims.sub:
      return "sub";

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