Task constructor

Task({
  1. required String? id,
  2. String? type,
  3. required String? orgID,
  4. String? org,
  5. required String? name,
  6. String? ownerID,
  7. String? description,
  8. TaskStatusType? status,
  9. List<Label>? labels = const [],
  10. String? authorizationID,
  11. required String? flux,
  12. String? every,
  13. String? cron,
  14. String? offset,
  15. DateTime? latestCompleted,
  16. TaskLastRunStatusEnum? lastRunStatus,
  17. String? lastRunError,
  18. DateTime? createdAt,
  19. DateTime? updatedAt,
  20. TaskLinks? links,
})

Returns a new Task instance.

Implementation

Task({
  required this.id,
  this.type,
  required this.orgID,
  this.org,
  required this.name,
  this.ownerID,
  this.description,
  this.status,
  this.labels = const [],
  this.authorizationID,
  required this.flux,
  this.every,
  this.cron,
  this.offset,
  this.latestCompleted,
  this.lastRunStatus,
  this.lastRunError,
  this.createdAt,
  this.updatedAt,
  this.links,
});