TF-2901 Implement caching composer on log out
This commit is contained in:
@@ -2,5 +2,18 @@
|
||||
enum ScreenDisplayMode {
|
||||
fullScreen,
|
||||
minimize,
|
||||
normal
|
||||
normal;
|
||||
|
||||
factory ScreenDisplayMode.fromJson(String value) {
|
||||
switch (value) {
|
||||
case 'fullScreen':
|
||||
return ScreenDisplayMode.fullScreen;
|
||||
case 'minimize':
|
||||
return ScreenDisplayMode.minimize;
|
||||
default:
|
||||
return ScreenDisplayMode.normal;
|
||||
}
|
||||
}
|
||||
|
||||
String toJson() => name;
|
||||
}
|
||||
Reference in New Issue
Block a user