fromJson static method
fromJson returns the enum value from a string representation.
Implementation
static AppType fromJson(String json) {
final found = _$AppTypeEnumMap.entries.firstWhereOrNull((e) => e.value == json);
return found?.key ?? AppType.public;
}