optional

@ApolloDeprecatedSince(version = ApolloDeprecatedSince.Version.v3_0_0)
fun <V> optional(value: V): Optional<V>

Deprecated

optional() is a helper function to help migrating to 3.x and will be removed in a future version

Replace with

Optional.presentIfNotNull(value)