Task constructor
Task({
- required String? id,
- String? type,
- required String? orgID,
- String? org,
- required String? name,
- String? ownerID,
- String? description,
- TaskStatusType? status,
- List<
Label> ? labels = const [], - String? authorizationID,
- required String? flux,
- String? every,
- String? cron,
- String? offset,
- DateTime? latestCompleted,
- TaskLastRunStatusEnum? lastRunStatus,
- String? lastRunError,
- DateTime? createdAt,
- DateTime? updatedAt,
- 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,
});