mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 03:56:24 +00:00
Add some getters
This commit is contained in:
parent
1d7d3def04
commit
56dd22c656
3 changed files with 39 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue