toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final authMechanism = this.authMechanism;
  final authSource = this.authSource;
  final authType = this.authType;
  final databaseName = this.databaseName;
  final docsToInvestigate = this.docsToInvestigate;
  final extractDocId = this.extractDocId;
  final kmsKeyId = this.kmsKeyId;
  final nestingLevel = this.nestingLevel;
  final password = this.password;
  final port = this.port;
  final secretsManagerAccessRoleArn = this.secretsManagerAccessRoleArn;
  final secretsManagerSecretId = this.secretsManagerSecretId;
  final serverName = this.serverName;
  final username = this.username;
  return {
    if (authMechanism != null) 'AuthMechanism': authMechanism.toValue(),
    if (authSource != null) 'AuthSource': authSource,
    if (authType != null) 'AuthType': authType.toValue(),
    if (databaseName != null) 'DatabaseName': databaseName,
    if (docsToInvestigate != null) 'DocsToInvestigate': docsToInvestigate,
    if (extractDocId != null) 'ExtractDocId': extractDocId,
    if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
    if (nestingLevel != null) 'NestingLevel': nestingLevel.toValue(),
    if (password != null) 'Password': password,
    if (port != null) 'Port': port,
    if (secretsManagerAccessRoleArn != null)
      'SecretsManagerAccessRoleArn': secretsManagerAccessRoleArn,
    if (secretsManagerSecretId != null)
      'SecretsManagerSecretId': secretsManagerSecretId,
    if (serverName != null) 'ServerName': serverName,
    if (username != null) 'Username': username,
  };
}