toJson method
Implementation
Map<String, dynamic> toJson() => {
  'id': id,
  'name': name,
  'category': category,
  'style': style,
  'colors': colors,
  'imageUrl': imageUrl,
  'imagePath': imagePath,
  'source': source,
  'addedDate': addedDate.toIso8601String(),
  'metadata': metadata,
  'wearCount': wearCount,
  'lastWornDate': lastWornDate?.toIso8601String(),
};