parseMode static method

LicenseMode parseMode(
  1. String mode
)

Implementation

static LicenseMode parseMode(String mode) {
  switch (mode) {
    case 'Expired':
      return LicenseMode.expired;
    case 'Limited':
      return LicenseMode.limited;
    case 'Grace':
      return LicenseMode.grace;
    default:
      return LicenseMode.valid;
  }
}