toJsonString method
Converts the current Oauth2SubjectTypes to a jsonString
Implementation
String toJsonString() {
switch (this) {
case Oauth2SubjectTypes.public:
return "public";
case Oauth2SubjectTypes.private:
return "private";
default:
throw UnimplementedError(
"The toJsonString() method is not defined for the value $this");
}
}