Article constructor
Article({
- required String id,
- String? name,
- String? description,
- int? unitPriceCents,
- num? vatRate,
- String? unit,
- String? number,
- String? ean,
- String? internalCode,
- String? groupId,
- String? revenueGroupId,
- bool stockTracked = false,
- String? stockKind,
- List<
String> stockLocationIds = const [], - int? minStock,
- Map<
String, int> minStockByLocation = const {}, - bool active = true,
- Map<
String, String> ? externalIds, - Map<
String, String> ? metadata, - String? variantGroupId,
- Map<
String, String> ? variantAttributes, - String? createdAt,
- String? updatedAt,
- int? purchasePriceMicros,
- bool? hasPurchasePriceMicros,
Implementation
Article({
required this.id,
this.name,
this.description,
this.unitPriceCents,
this.vatRate,
this.unit,
this.number,
this.ean,
this.internalCode,
this.groupId,
this.revenueGroupId,
this.stockTracked = false,
this.stockKind,
this.stockLocationIds = const [],
this.minStock,
this.minStockByLocation = const {},
this.active = true,
this.externalIds,
this.metadata,
this.variantGroupId,
this.variantAttributes,
this.createdAt,
this.updatedAt,
this.purchasePriceMicros,
bool? hasPurchasePriceMicros,
}) : hasPurchasePriceMicros = hasPurchasePriceMicros ?? purchasePriceMicros != null;