OrderHeader constructor

OrderHeader({
  1. OrderId? id,
  2. Timestamp? createdAt,
  3. Credit? totalPriceInclVat,
  4. DeliveryId? deliveryId,
  5. int? lineCount,
  6. StoredImage? thumbnail,
})

Implementation

factory OrderHeader({
  $0.OrderId? id,
  $8.Timestamp? createdAt,
  $5.Credit? totalPriceInclVat,
  $0.DeliveryId? deliveryId,
  $core.int? lineCount,
  $9.StoredImage? thumbnail,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (createdAt != null) result.createdAt = createdAt;
  if (totalPriceInclVat != null) result.totalPriceInclVat = totalPriceInclVat;
  if (deliveryId != null) result.deliveryId = deliveryId;
  if (lineCount != null) result.lineCount = lineCount;
  if (thumbnail != null) result.thumbnail = thumbnail;
  return result;
}