|
|
|
|
@ -44,7 +44,7 @@ class SparePartHelperModel {
|
|
|
|
|
}
|
|
|
|
|
data['comment'] = comment;
|
|
|
|
|
if (sparePartAttachments != null) {
|
|
|
|
|
data['acitiySparePartAttachments'] = sparePartAttachments!.map((v) => v?.toJson() ?? {}).toList();
|
|
|
|
|
data['acitiySparePartAttachments'] = sparePartAttachments!.map((v) => v?.toSparePartJson() ?? {}).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
@ -59,7 +59,7 @@ class SparePartHelperModel {
|
|
|
|
|
data['installQty'] = installQty;
|
|
|
|
|
data['returnQty'] = returnQty;
|
|
|
|
|
if (sparePartAttachments?.isNotEmpty ?? false) {
|
|
|
|
|
data['acitiySparePartAttachments'] = sparePartAttachments!.map((v) => v.toJson()).toList();
|
|
|
|
|
data['acitiySparePartAttachments'] = sparePartAttachments!.map((v) => v.toSparePartJson()).toList();
|
|
|
|
|
}
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|