Recommendation constructor

Recommendation({
  1. required String id,
  2. String? workspaceId,
  3. String? userId,
  4. String? kind,
  5. String? title,
  6. String? body,
  7. required RecommendationStatusEnum status,
  8. Map<String, Object> payload = const {},
  9. DateTime? createdAt,
  10. DateTime? updatedAt,
  11. DateTime? expiresAt,
})

Returns a new Recommendation instance.

Implementation

Recommendation({
  required this.id,
  this.workspaceId,
  this.userId,
  this.kind,
  this.title,
  this.body,
  required this.status,
  this.payload = const {},
  this.createdAt,
  this.updatedAt,
  this.expiresAt,
});