Map<String, dynamic> toJson() => { 'client_id': clientId, if (clientSecret != null) 'client_secret': clientSecret, };