toJson method
Implementation
Map<String, dynamic> toJson() => {
'client_id': clientId,
if (clientSecret != null) 'client_secret': clientSecret,
'grant_types': grantTypes,
'response_types': responseTypes,
'redirect_uris': redirectUris,
'scope': scope,
'project_id': projectId,
'metadata': metadata,
};