Convert a nullable type T? to IOOption:
T?
null
IOOption<T> toIOOption() => IOOption.fromNullable(this);