mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 11:38:56 +03:30
commit
This commit is contained in:
@@ -222,6 +222,7 @@ class CyclesProvider extends ChangeNotifier {
|
||||
id: 'null',
|
||||
description: 'null',
|
||||
createDate: 'null',
|
||||
hospitalName: 'null',
|
||||
date: '2020-01-01',
|
||||
sterileId: 'null',
|
||||
cycleNumber: 'null',
|
||||
@@ -233,10 +234,12 @@ class CyclesProvider extends ChangeNotifier {
|
||||
for (var label in data['labels']) {
|
||||
lablesList.add(label['id'].toString());
|
||||
}
|
||||
print(data);
|
||||
result = CycleDetailObject(
|
||||
id: data['id'].toString(),
|
||||
description: data['note'] != null ? data['note'] : '',
|
||||
createDate: data['created_at'] != null ? data['created_at'] : '',
|
||||
hospitalName: data['user']['medical_center']['name'],
|
||||
date: data['date'] != null ? data['date'] : '',
|
||||
sterileId: data['sterilizer_id'] != null ? data['sterilizer_id'] : '',
|
||||
cycleNumber: data['cycle_number'] != null ? data['cycle_number'] : '',
|
||||
|
||||
Reference in New Issue
Block a user