I'm creating a Kotlin data class, from existing Sc...
# announcements
r
I'm creating a Kotlin data class, from existing Scala class made by others. How to convert Option scala to kotlin? for example from the snippet below
Copy code
scala
class Foo(name: Option[String], bar: Option[String] = None)
Is it something like this in kotlin? Does Option in scala mean nullable thing in Kotlin?
Copy code
Kotlin
class Foo(name: String?, bar: String? = null)