mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 03:56:24 +00:00
Major refactoring for model data accessors
This commit is contained in:
parent
bfb582efb2
commit
bff2a5e2a9
7 changed files with 188 additions and 227 deletions
|
|
@ -27,8 +27,8 @@ class InvenTreeNotification extends InvenTreeModel {
|
|||
};
|
||||
}
|
||||
|
||||
String get message => (jsondata["message"] ?? "") as String;
|
||||
|
||||
String get message => getString("message");
|
||||
|
||||
DateTime? get creationDate {
|
||||
if (jsondata.containsKey("creation")) {
|
||||
return DateTime.tryParse((jsondata["creation"] ?? "") as String);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue