toJson method
Returns a JSON-friendly representation of this object.
Contains the following fields:
client_id
client_secret
redirect_uri
If obscureSecret
is true
(default), then the clientSecret will
be replaced by the string <redacted>
.
Implementation
Map<String, dynamic> toJson({bool obscureSecret = true}) {
return {
'client_id': clientId,
'client_secret': obscureSecret ? '<redacted>' : clientSecret,
'redirect_uri': redirectUri.toString(),
'scopes': scopes.toList(),
};
}