int SrvcStateToJson(SrvcState f) { return SrvcStates.entries.firstWhere((element) => element.value == f).key; }