Container constructor

Container({
  1. RowVersion? rowVersion,
  2. ContainerId? id,
  3. StringValue? description,
  4. AccountId? accountId,
  5. Container? parent,
  6. StringValue? parentName,
  7. BoolValue? editable,
  8. Container_ContainerType? type,
  9. BoolValue? isPickLocation,
  10. DeliveryId? deliveryId,
  11. TemplateId? templateId,
  12. Dimensions? dimensions,
  13. ColorValue? color,
  14. DoubleValue? order,
})

Implementation

factory Container({
  $0.RowVersion? rowVersion,
  $1.ContainerId? id,
  $2.StringValue? description,
  $1.AccountId? accountId,
  Container? parent,
  $2.StringValue? parentName,
  $2.BoolValue? editable,
  Container_ContainerType? type,
  $2.BoolValue? isPickLocation,
  $1.DeliveryId? deliveryId,
  $1.TemplateId? templateId,
  $0.Dimensions? dimensions,
  $0.ColorValue? color,
  $2.DoubleValue? order,
}) {
  final result = create();
  if (rowVersion != null) result.rowVersion = rowVersion;
  if (id != null) result.id = id;
  if (description != null) result.description = description;
  if (accountId != null) result.accountId = accountId;
  if (parent != null) result.parent = parent;
  if (parentName != null) result.parentName = parentName;
  if (editable != null) result.editable = editable;
  if (type != null) result.type = type;
  if (isPickLocation != null) result.isPickLocation = isPickLocation;
  if (deliveryId != null) result.deliveryId = deliveryId;
  if (templateId != null) result.templateId = templateId;
  if (dimensions != null) result.dimensions = dimensions;
  if (color != null) result.color = color;
  if (order != null) result.order = order;
  return result;
}