toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final acceptAnyDate = this.acceptAnyDate;
  final afterConnectScript = this.afterConnectScript;
  final bucketFolder = this.bucketFolder;
  final bucketName = this.bucketName;
  final caseSensitiveNames = this.caseSensitiveNames;
  final compUpdate = this.compUpdate;
  final connectionTimeout = this.connectionTimeout;
  final databaseName = this.databaseName;
  final dateFormat = this.dateFormat;
  final emptyAsNull = this.emptyAsNull;
  final encryptionMode = this.encryptionMode;
  final explicitIds = this.explicitIds;
  final fileTransferUploadStreams = this.fileTransferUploadStreams;
  final loadTimeout = this.loadTimeout;
  final maxFileSize = this.maxFileSize;
  final password = this.password;
  final port = this.port;
  final removeQuotes = this.removeQuotes;
  final replaceChars = this.replaceChars;
  final replaceInvalidChars = this.replaceInvalidChars;
  final secretsManagerAccessRoleArn = this.secretsManagerAccessRoleArn;
  final secretsManagerSecretId = this.secretsManagerSecretId;
  final serverName = this.serverName;
  final serverSideEncryptionKmsKeyId = this.serverSideEncryptionKmsKeyId;
  final serviceAccessRoleArn = this.serviceAccessRoleArn;
  final timeFormat = this.timeFormat;
  final trimBlanks = this.trimBlanks;
  final truncateColumns = this.truncateColumns;
  final username = this.username;
  final writeBufferSize = this.writeBufferSize;
  return {
    if (acceptAnyDate != null) 'AcceptAnyDate': acceptAnyDate,
    if (afterConnectScript != null) 'AfterConnectScript': afterConnectScript,
    if (bucketFolder != null) 'BucketFolder': bucketFolder,
    if (bucketName != null) 'BucketName': bucketName,
    if (caseSensitiveNames != null) 'CaseSensitiveNames': caseSensitiveNames,
    if (compUpdate != null) 'CompUpdate': compUpdate,
    if (connectionTimeout != null) 'ConnectionTimeout': connectionTimeout,
    if (databaseName != null) 'DatabaseName': databaseName,
    if (dateFormat != null) 'DateFormat': dateFormat,
    if (emptyAsNull != null) 'EmptyAsNull': emptyAsNull,
    if (encryptionMode != null) 'EncryptionMode': encryptionMode.toValue(),
    if (explicitIds != null) 'ExplicitIds': explicitIds,
    if (fileTransferUploadStreams != null)
      'FileTransferUploadStreams': fileTransferUploadStreams,
    if (loadTimeout != null) 'LoadTimeout': loadTimeout,
    if (maxFileSize != null) 'MaxFileSize': maxFileSize,
    if (password != null) 'Password': password,
    if (port != null) 'Port': port,
    if (removeQuotes != null) 'RemoveQuotes': removeQuotes,
    if (replaceChars != null) 'ReplaceChars': replaceChars,
    if (replaceInvalidChars != null)
      'ReplaceInvalidChars': replaceInvalidChars,
    if (secretsManagerAccessRoleArn != null)
      'SecretsManagerAccessRoleArn': secretsManagerAccessRoleArn,
    if (secretsManagerSecretId != null)
      'SecretsManagerSecretId': secretsManagerSecretId,
    if (serverName != null) 'ServerName': serverName,
    if (serverSideEncryptionKmsKeyId != null)
      'ServerSideEncryptionKmsKeyId': serverSideEncryptionKmsKeyId,
    if (serviceAccessRoleArn != null)
      'ServiceAccessRoleArn': serviceAccessRoleArn,
    if (timeFormat != null) 'TimeFormat': timeFormat,
    if (trimBlanks != null) 'TrimBlanks': trimBlanks,
    if (truncateColumns != null) 'TruncateColumns': truncateColumns,
    if (username != null) 'Username': username,
    if (writeBufferSize != null) 'WriteBufferSize': writeBufferSize,
  };
}