toMinimumProtocolVersion method
Implementation
MinimumProtocolVersion toMinimumProtocolVersion() {
switch (this) {
case 'SSLv3':
return MinimumProtocolVersion.sSLv3;
case 'TLSv1':
return MinimumProtocolVersion.tLSv1;
case 'TLSv1_2016':
return MinimumProtocolVersion.tLSv1_2016;
case 'TLSv1.1_2016':
return MinimumProtocolVersion.tLSv1_1_2016;
case 'TLSv1.2_2018':
return MinimumProtocolVersion.tLSv1_2_2018;
case 'TLSv1.2_2019':
return MinimumProtocolVersion.tLSv1_2_2019;
}
throw Exception('$this is not known in enum MinimumProtocolVersion');
}