price per item is printed

This commit is contained in:
atseirjo
2026-10-28 12:32:49 +01:00
parent c32adbad50
commit 77fbe16867
31 changed files with 656 additions and 55 deletions
+5
View File
@@ -34,6 +34,7 @@ class BauteilModel {
final int druckdauerMinuten;
final double gewichtGramm;
final double abfallGramm;
final double? gesamtpreis;
final List<BauteilFilamentModel> filamente;
final String? fotoBase64;
@@ -46,6 +47,7 @@ class BauteilModel {
required this.gewichtGramm,
required this.abfallGramm,
required this.filamente,
this.gesamtpreis,
this.fotoBase64,
});
@@ -71,6 +73,7 @@ class BauteilModel {
druckdauerMinuten: druckdauerMinuten,
gewichtGramm: gewichtGramm,
abfallGramm: abfallGramm,
gesamtpreis: gesamtpreis,
filamente: filamente,
fotoBase64: fotoBase64,
);
@@ -83,6 +86,7 @@ class BauteilModel {
'druckdauerMinuten': druckdauerMinuten,
'gewichtGramm': gewichtGramm,
'abfallGramm': abfallGramm,
'gesamtpreis': gesamtpreis,
'filamente': filamente.map((item) => item.toJson()).toList(),
'fotoBase64': fotoBase64,
};
@@ -95,6 +99,7 @@ class BauteilModel {
druckdauerMinuten: json['druckdauerMinuten'] as int,
gewichtGramm: (json['gewichtGramm'] as num).toDouble(),
abfallGramm: (json['abfallGramm'] as num).toDouble(),
gesamtpreis: (json['gesamtpreis'] as num?)?.toDouble(),
fotoBase64: json['fotoBase64'] as String?,
filamente: (json['filamente'] as List)
.map(