toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final userPoolArn = this.userPoolArn;
  final userPoolClientId = this.userPoolClientId;
  final userPoolDomain = this.userPoolDomain;
  final authenticationRequestExtraParams =
      this.authenticationRequestExtraParams;
  final onUnauthenticatedRequest = this.onUnauthenticatedRequest;
  final scope = this.scope;
  final sessionCookieName = this.sessionCookieName;
  final sessionTimeout = this.sessionTimeout;
  return {
    'UserPoolArn': userPoolArn,
    'UserPoolClientId': userPoolClientId,
    'UserPoolDomain': userPoolDomain,
    if (authenticationRequestExtraParams != null)
      'AuthenticationRequestExtraParams': authenticationRequestExtraParams,
    if (onUnauthenticatedRequest != null)
      'OnUnauthenticatedRequest': onUnauthenticatedRequest.toValue(),
    if (scope != null) 'Scope': scope,
    if (sessionCookieName != null) 'SessionCookieName': sessionCookieName,
    if (sessionTimeout != null) 'SessionTimeout': sessionTimeout,
  };
}