toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'message': message,
'stackTrace': stackTrace,
'metadata': metadata,
'timestamp': timestamp.toIso8601String(),
'category': category,
'entityType': entityType,
'entityId': entityId,
'isSent': isSent,
};
}