object and router files update
This commit is contained in:
parent
fcd045ac40
commit
5b905be74b
44 changed files with 88 additions and 88 deletions
23
Frontend/patient_manager/lib/mih_objects/session_st.dart
Normal file
23
Frontend/patient_manager/lib/mih_objects/session_st.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
class SessionST {
|
||||
final String status;
|
||||
final bool exists;
|
||||
|
||||
const SessionST({
|
||||
required this.status,
|
||||
required this.exists,
|
||||
});
|
||||
|
||||
factory SessionST.fromJson(Map<String, dynamic> json) {
|
||||
return switch (json) {
|
||||
{
|
||||
'status': String status,
|
||||
'exists': bool exists,
|
||||
} =>
|
||||
SessionST(
|
||||
status: status,
|
||||
exists: exists,
|
||||
),
|
||||
_ => throw const FormatException('Failed to load SessionST.'),
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue