toMap method
Implementation
@mustCallSuper
Map<String, String> toMap() {
var map = {
"client_id": clientId,
"grant_type": grantType,
"scope": scopes.join(" "),
if (prompts != null && prompts!.isNotEmpty) 'prompt': prompts!.join(' '),
if (clientSecret != null) "client_secret": clientSecret!,
if (additionalParameters != null) ...additionalParameters!
};
return map;
}