Here is a sample Spark code, which converts the Seq to the Dataset:
import spark.implicits._
val s = Seq(1, 2, 3, 4)
val ds = s.toDS()
The Scala Seq does not have the toDS method, it comes from Spark implicits. How is the Dataset created here?
Edit: I did look at other SO answers but could not see an example, which would explain how the implicit could be used in s.toDS. I've referenced to the sample answer in the comment.