Nullable

smithy4s.Nullable
See theNullable companion object
sealed trait Nullable[+A]

ADT isomorphic to Option, but representing types that were passed explicitly as null rather than ones that were absent.

The goal of this datatype is to offer the ability to distinguish, during serialisation, between the absence of a field and the nullity of a field.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Null
class Value[A]

Members list

Value members

Concrete methods

def fold[B](whenNull: => B)(whenValue: A => B): B
def map[B](f: A => B): Nullable[B]
def toOption: Option[A]