fromJson static method

AppType fromJson(
  1. String json
)

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;
}