WorkflowRule constructor

WorkflowRule({
  1. String? entityUuid,
  2. EmployeeMetadata? metadata,
  3. ApprovalMetadata? approvalMetadata,
  4. STANDARD_LIFECYCLE_STATUS? status,
  5. Iterable<LogbookLogConciseSLC>? logs,
  6. Int64? completedOn,
  7. Int64? vaultFolderId,
  8. String? name,
  9. String? code,
  10. Int64? notifyUserId,
  11. String? description,
  12. WORKFLOW_RULE_SERVICE_NAME? serviceName,
  13. STANDARD_LIFECYCLE_STATUS? recordStatus,
  14. WORKFLOW_RULE_MOMENT? moment,
  15. WORKFLOW_RULE_EXECUTE_ON? executeOn,
  16. List<int>? userPayload,
})

Implementation

factory WorkflowRule({
  $core.String? entityUuid,
  $1.EmployeeMetadata? metadata,
  $1.ApprovalMetadata? approvalMetadata,
  $1.STANDARD_LIFECYCLE_STATUS? status,
  $core.Iterable<$1.LogbookLogConciseSLC>? logs,
  $fixnum.Int64? completedOn,
  $fixnum.Int64? vaultFolderId,
  $core.String? name,
  $core.String? code,
  $fixnum.Int64? notifyUserId,
  $core.String? description,
  WORKFLOW_RULE_SERVICE_NAME? serviceName,
  $1.STANDARD_LIFECYCLE_STATUS? recordStatus,
  WORKFLOW_RULE_MOMENT? moment,
  WORKFLOW_RULE_EXECUTE_ON? executeOn,
  $core.List<$core.int>? userPayload,
}) {
  final result = create();
  if (entityUuid != null) result.entityUuid = entityUuid;
  if (metadata != null) result.metadata = metadata;
  if (approvalMetadata != null) result.approvalMetadata = approvalMetadata;
  if (status != null) result.status = status;
  if (logs != null) result.logs.addAll(logs);
  if (completedOn != null) result.completedOn = completedOn;
  if (vaultFolderId != null) result.vaultFolderId = vaultFolderId;
  if (name != null) result.name = name;
  if (code != null) result.code = code;
  if (notifyUserId != null) result.notifyUserId = notifyUserId;
  if (description != null) result.description = description;
  if (serviceName != null) result.serviceName = serviceName;
  if (recordStatus != null) result.recordStatus = recordStatus;
  if (moment != null) result.moment = moment;
  if (executeOn != null) result.executeOn = executeOn;
  if (userPayload != null) result.userPayload = userPayload;
  return result;
}