toAppStatus function
Implementation
AppStatus toAppStatus(int? index) {
switch (index) {
case 0:
return AppStatus.live;
case 1:
return AppStatus.offline;
case 2:
return AppStatus.invisible;
}
return AppStatus.unknown;
}