EUserHasLicenseForAppResult.fromValue constructor

EUserHasLicenseForAppResult.fromValue(
  1. int value
)

Implementation

factory EUserHasLicenseForAppResult.fromValue(int value) {
  switch (value) {
    case 0:
      return EUserHasLicenseForAppResult.hasLicense;
    case 1:
      return EUserHasLicenseForAppResult.doesNotHaveLicense;
    case 2:
      return EUserHasLicenseForAppResult.noAuth;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EUserHasLicenseForAppResult'. The value was: '$value'",
      );
  }
}