ActionCode constructor

ActionCode({
  1. String? entityUuid,
  2. EmployeeMetadata? metadata,
  3. ApprovalMetadata? approvalMetadata,
  4. STANDARD_LIFECYCLE_STATUS? status,
  5. Iterable<LogbookLogConciseSLC>? logs,
  6. String? name,
  7. String? code,
  8. String? fgColor,
  9. String? bgColor,
  10. Int64? parentActionCodeId,
  11. bool? isLeaf,
  12. String? description,
})

Implementation

factory ActionCode({
  $core.String? entityUuid,
  $1.EmployeeMetadata? metadata,
  $1.ApprovalMetadata? approvalMetadata,
  $1.STANDARD_LIFECYCLE_STATUS? status,
  $core.Iterable<$1.LogbookLogConciseSLC>? logs,
  $core.String? name,
  $core.String? code,
  $core.String? fgColor,
  $core.String? bgColor,
  $fixnum.Int64? parentActionCodeId,
  $core.bool? isLeaf,
  $core.String? description,
}) {
  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 (name != null) result.name = name;
  if (code != null) result.code = code;
  if (fgColor != null) result.fgColor = fgColor;
  if (bgColor != null) result.bgColor = bgColor;
  if (parentActionCodeId != null)
    result.parentActionCodeId = parentActionCodeId;
  if (isLeaf != null) result.isLeaf = isLeaf;
  if (description != null) result.description = description;
  return result;
}