toJson method
Implementation
Map<String, dynamic> toJson() {
final authorizationEndpoint = this.authorizationEndpoint;
final clientId = this.clientId;
final issuer = this.issuer;
final tokenEndpoint = this.tokenEndpoint;
final userInfoEndpoint = this.userInfoEndpoint;
final authenticationRequestExtraParams =
this.authenticationRequestExtraParams;
final clientSecret = this.clientSecret;
final onUnauthenticatedRequest = this.onUnauthenticatedRequest;
final scope = this.scope;
final sessionCookieName = this.sessionCookieName;
final sessionTimeout = this.sessionTimeout;
final useExistingClientSecret = this.useExistingClientSecret;
return {
'AuthorizationEndpoint': authorizationEndpoint,
'ClientId': clientId,
'Issuer': issuer,
'TokenEndpoint': tokenEndpoint,
'UserInfoEndpoint': userInfoEndpoint,
if (authenticationRequestExtraParams != null)
'AuthenticationRequestExtraParams': authenticationRequestExtraParams,
if (clientSecret != null) 'ClientSecret': clientSecret,
if (onUnauthenticatedRequest != null)
'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(),
if (scope != null) 'Scope': scope,
if (sessionCookieName != null) 'SessionCookieName': sessionCookieName,
if (sessionTimeout != null) 'SessionTimeout': sessionTimeout,
if (useExistingClientSecret != null)
'UseExistingClientSecret': useExistingClientSecret,
};
}