I am trying to generate Getters and Setters in my Kotlin model class without writing the code manually but the options are not showing up in the Generate Menu in Android Studio.
My Model Class (Kotlin)
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
public class EventsRoadSummaryAPINodeModel {
@SerializedName("road_name")
@Expose
var road_name: String? = null
@SerializedName("locality")
@Expose
var locality: String? = null
@SerializedName("postcode")
@Expose
var postcode: String? = null
@SerializedName("local_government_area")
@Expose
var local_government_area: String? = null
@SerializedName("district")
@Expose
var district: String? = null
}
How do I generate getters and setters in a Kotlin class, please?