fromNullable<A> static method

IOOption<A> fromNullable<A>(
  1. A? a
)

Create an IOOption from the given nullable value, succeeding when it is not null, and failing with None when it is null.

Implementation

static IOOption<A> fromNullable<A>(A? a) =>
    ZIO.fromOption(Option.fromNullable(a));