OrderLine constructor

OrderLine({
  1. SKU? sKU,
  2. StringValue? title,
  3. Price? pricePerPiece,
  4. Price? feePerPiece,
  5. DoubleValue? quantity,
  6. Price? price,
  7. Price? totalFee,
  8. Price? totalItemPrice,
  9. Any? details,
  10. AccountId? seller,
  11. Iterable<StoredImage>? images,
  12. bool? isVirtualProduct,
})

Implementation

factory OrderLine({
  $0.SKU? sKU,
  $1.StringValue? title,
  $4.Price? pricePerPiece,
  $4.Price? feePerPiece,
  $1.DoubleValue? quantity,
  $4.Price? price,
  $4.Price? totalFee,
  $4.Price? totalItemPrice,
  $11.Any? details,
  $0.AccountId? seller,
  $core.Iterable<$9.StoredImage>? images,
  $core.bool? isVirtualProduct,
}) {
  final result = create();
  if (sKU != null) result.sKU = sKU;
  if (title != null) result.title = title;
  if (pricePerPiece != null) result.pricePerPiece = pricePerPiece;
  if (feePerPiece != null) result.feePerPiece = feePerPiece;
  if (quantity != null) result.quantity = quantity;
  if (price != null) result.price = price;
  if (totalFee != null) result.totalFee = totalFee;
  if (totalItemPrice != null) result.totalItemPrice = totalItemPrice;
  if (details != null) result.details = details;
  if (seller != null) result.seller = seller;
  if (images != null) result.images.addAll(images);
  if (isVirtualProduct != null) result.isVirtualProduct = isVirtualProduct;
  return result;
}