Add some getters

This commit is contained in:
Oliver Walters 2020-05-23 21:15:02 +10:00
parent 1d7d3def04
commit 56dd22c656
3 changed files with 39 additions and 1 deletions

View file

@ -16,6 +16,20 @@ class InvenTreeStockItemTestResult extends InvenTreeModel {
@override
String URL = "stock/test/";
String get key => jsondata['key'] ?? '';
String get test_name => jsondata['test'] ?? '';
bool get result => jsondata['result'] ?? false;
String get value => jsondata['value'] ?? '';
String get notes => jsondata['notes'] ?? '';
String get attachment => jsondata['attachment'] ?? '';
String get date => jsondata['date'] ?? '';
InvenTreeStockItemTestResult() : super();
InvenTreeStockItemTestResult.fromJson(Map<String, dynamic> json) : super.fromJson(json) {