toSmbVersion method

SmbVersion toSmbVersion()

Implementation

SmbVersion toSmbVersion() {
  switch (this) {
    case 'AUTOMATIC':
      return SmbVersion.automatic;
    case 'SMB2':
      return SmbVersion.smb2;
    case 'SMB3':
      return SmbVersion.smb3;
  }
  throw Exception('$this is not known in enum SmbVersion');
}