BulkValidationJob class
Represents a bulk email validation job.
Jobs are created asynchronously and processed in the background. Use the status field and convenience getters to check progress.
Example:
final job = await client.createBulkJob(emails: ['user@example.com']);
print('Job ID: ${job.id}');
print('Status: ${job.status}');
if (job.isPending) {
print('Job is waiting to start');
} else if (job.isProcessing) {
print('Processing: ${job.processedEmails}/${job.totalEmails}');
}
Constructors
- BulkValidationJob({required String id, required String status, required int totalEmails, required int processedEmails, int? validEmails, int? invalidEmails, required String createdAt, String? completedAt, String? errorMessage})
-
Creates a new BulkValidationJob.
const
-
BulkValidationJob.fromJson(Map<
String, dynamic> json) -
Creates a BulkValidationJob from a JSON map.
factory
Properties
- completedAt → String?
-
ISO 8601 timestamp when the job completed (null if not completed).
final
- createdAt → String
-
ISO 8601 timestamp when the job was created.
final
- errorMessage → String?
-
Error message if the job failed (null if successful).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the job.
final
- invalidEmails → int?
-
Number of invalid emails found (only available when completed).
final
- isCompleted → bool
-
Whether the job has completed successfully.
no setter
- isFailed → bool
-
Whether the job has failed.
no setter
- isPending → bool
-
Whether the job is pending (waiting to start).
no setter
- isProcessing → bool
-
Whether the job is currently processing.
no setter
- processedEmails → int
-
Number of emails processed so far.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
Current status of the job: 'PENDING', 'PROCESSING', 'COMPLETED', or 'FAILED'.
final
- totalEmails → int
-
Total number of emails in the job.
final
- validEmails → int?
-
Number of valid emails found (only available when completed).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited