AuthorizationStatus.parse constructor
Implementation
@visibleForTesting
factory AuthorizationStatus.parse(String value) {
switch (value) {
case 'ALLOWED':
return allowed;
case 'ALWAYS':
return always;
case 'WHEN_IN_USE':
return whenInUse;
case 'DENIED':
return denied;
case 'RESTRICTED':
return restricted;
case 'NOT_DETERMINED':
return notDetermined;
}
throw Exception('invalid authorization status $value');
}