toLicenseStatus method
Implementation
LicenseStatus toLicenseStatus() {
switch (this) {
case 'AVAILABLE':
return LicenseStatus.available;
case 'PENDING_AVAILABLE':
return LicenseStatus.pendingAvailable;
case 'DEACTIVATED':
return LicenseStatus.deactivated;
case 'SUSPENDED':
return LicenseStatus.suspended;
case 'EXPIRED':
return LicenseStatus.expired;
case 'PENDING_DELETE':
return LicenseStatus.pendingDelete;
case 'DELETED':
return LicenseStatus.deleted;
}
throw Exception('$this is not known in enum LicenseStatus');
}