toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'mutationKey': mutationKey,
'action': action.index,
'payload': payload,
'createdAt': createdAt.toIso8601String(),
'retryCount': retryCount,
};