toJsonString method

String toJsonString()

Converts the current Oauth2ResponseTypes to a jsonString

Implementation

String toJsonString() {
  switch (this) {
    case Oauth2ResponseTypes.code:
      return "code";

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