LambdaConfigType.fromJson constructor

LambdaConfigType.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LambdaConfigType.fromJson(Map<String, dynamic> json) {
  return LambdaConfigType(
    createAuthChallenge: json['CreateAuthChallenge'] as String?,
    customEmailSender: json['CustomEmailSender'] != null
        ? CustomEmailLambdaVersionConfigType.fromJson(
            json['CustomEmailSender'] as Map<String, dynamic>)
        : null,
    customMessage: json['CustomMessage'] as String?,
    customSMSSender: json['CustomSMSSender'] != null
        ? CustomSMSLambdaVersionConfigType.fromJson(
            json['CustomSMSSender'] as Map<String, dynamic>)
        : null,
    defineAuthChallenge: json['DefineAuthChallenge'] as String?,
    kMSKeyID: json['KMSKeyID'] as String?,
    postAuthentication: json['PostAuthentication'] as String?,
    postConfirmation: json['PostConfirmation'] as String?,
    preAuthentication: json['PreAuthentication'] as String?,
    preSignUp: json['PreSignUp'] as String?,
    preTokenGeneration: json['PreTokenGeneration'] as String?,
    userMigration: json['UserMigration'] as String?,
    verifyAuthChallengeResponse:
        json['VerifyAuthChallengeResponse'] as String?,
  );
}