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