toJson abstract method

  1. @override
Map<String, dynamic> toJson()
override

Convert job to JSON for serialization

Override this to include all data needed to reconstruct the job. Don't include job metadata (maxRetries, displayName, etc.) - those are handled automatically by the queue system.

Implementation

@override
Map<String, dynamic> toJson();