toSMBSecurityStrategy method

SMBSecurityStrategy toSMBSecurityStrategy()

Implementation

SMBSecurityStrategy toSMBSecurityStrategy() {
  switch (this) {
    case 'ClientSpecified':
      return SMBSecurityStrategy.clientSpecified;
    case 'MandatorySigning':
      return SMBSecurityStrategy.mandatorySigning;
    case 'MandatoryEncryption':
      return SMBSecurityStrategy.mandatoryEncryption;
  }
  throw Exception('$this is not known in enum SMBSecurityStrategy');
}