2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

Extract part ID from supplier part

This commit is contained in:
Oliver 2021-09-27 21:08:31 +10:00
parent e7f0fec0cf
commit f9b688cdab

View File

@ -101,6 +101,8 @@ class InvenTreeSupplierPart extends InvenTreeModel {
String get MPN => jsondata['MPN'] ?? '';
int get partId => jsondata['part'] ?? -1;
@override
InvenTreeModel createFromJson(Map<String, dynamic> json) {
var part = InvenTreeSupplierPart.fromJson(json);