toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final createAuthChallenge = this.createAuthChallenge;
  final customEmailSender = this.customEmailSender;
  final customMessage = this.customMessage;
  final customSMSSender = this.customSMSSender;
  final defineAuthChallenge = this.defineAuthChallenge;
  final kMSKeyID = this.kMSKeyID;
  final postAuthentication = this.postAuthentication;
  final postConfirmation = this.postConfirmation;
  final preAuthentication = this.preAuthentication;
  final preSignUp = this.preSignUp;
  final preTokenGeneration = this.preTokenGeneration;
  final userMigration = this.userMigration;
  final verifyAuthChallengeResponse = this.verifyAuthChallengeResponse;
  return {
    if (createAuthChallenge != null)
      'CreateAuthChallenge': createAuthChallenge,
    if (customEmailSender != null) 'CustomEmailSender': customEmailSender,
    if (customMessage != null) 'CustomMessage': customMessage,
    if (customSMSSender != null) 'CustomSMSSender': customSMSSender,
    if (defineAuthChallenge != null)
      'DefineAuthChallenge': defineAuthChallenge,
    if (kMSKeyID != null) 'KMSKeyID': kMSKeyID,
    if (postAuthentication != null) 'PostAuthentication': postAuthentication,
    if (postConfirmation != null) 'PostConfirmation': postConfirmation,
    if (preAuthentication != null) 'PreAuthentication': preAuthentication,
    if (preSignUp != null) 'PreSignUp': preSignUp,
    if (preTokenGeneration != null) 'PreTokenGeneration': preTokenGeneration,
    if (userMigration != null) 'UserMigration': userMigration,
    if (verifyAuthChallengeResponse != null)
      'VerifyAuthChallengeResponse': verifyAuthChallengeResponse,
  };
}