toJson method
Implementation
Map<String, dynamic> toJson() {
final database = this.database;
final sql = this.sql;
final dbUser = this.dbUser;
final secretManagerArn = this.secretManagerArn;
final statementName = this.statementName;
final withEvent = this.withEvent;
return {
'Database': database,
'Sql': sql,
if (dbUser != null) 'DbUser': dbUser,
if (secretManagerArn != null) 'SecretManagerArn': secretManagerArn,
if (statementName != null) 'StatementName': statementName,
if (withEvent != null) 'WithEvent': withEvent,
};
}