toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'jobType': jobType,
'payload': payload,
'error': error,
'stackTrace': stackTrace,
'failedAt': failedAt.toIso8601String(),
'attempts': attempts,
'metadata': metadata,
};