toUserType method

UserType toUserType()

Implementation

UserType toUserType() {
  switch (this) {
    case 'PrivateUser':
      return UserType.privateUser;
    case 'SharedDevice':
      return UserType.sharedDevice;
  }
  throw Exception('$this is not known in enum UserType');
}