toRadiusAuthenticationProtocol method
Implementation
RadiusAuthenticationProtocol toRadiusAuthenticationProtocol() {
switch (this) {
case 'PAP':
return RadiusAuthenticationProtocol.pap;
case 'CHAP':
return RadiusAuthenticationProtocol.chap;
case 'MS-CHAPv1':
return RadiusAuthenticationProtocol.msCHAPv1;
case 'MS-CHAPv2':
return RadiusAuthenticationProtocol.msCHAPv2;
}
throw Exception('$this is not known in enum RadiusAuthenticationProtocol');
}