Defining the Model

We will define the Model as per the response JSON received from the Words API website. Let's take a look at the following code:

    class Meaning {      val wordProperty = SimpleStringProperty()      var word by wordProperty      val definitions = FXCollections.observableArrayList<Definition>()       }

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.