toJson method
Serialize to JSON
Implementation
@override
Map<String, dynamic> toJson() => {
'id': id,
'type': type,
'payload': payload,
'conflictStrategy': conflictStrategy.name,
'createdAt': createdAt.toIso8601String(),
'retryCount': retryCount,
};