You should try Kotlin. It solves exactly this pain point - creating classes for data structures is very terse and easy.
You can have a one-liner class like
class Person(val name: String, val email: String, val yearOfBirth: Int? = null)
Or you can make it a `data class` and get automatic `equals` and other things.