I am making a project to get an API using Retrofit, in order to get the data from the website, I have to understand that there is some data stored into multiple data within the JSON, such as this:
launches [{
id* string
provider string
}]
What I want from the JSON code is to convert it into a Java/Kotlin code for the small project, If someone can able to explain to me OR show it to me in a Java/Kotlin code on how to make the setter/getter sequence on this code. Thank you for your time.
Here is the full example JSON format:
Article{
id integer
featured boolean
default: false
title string
url string
imageUrl string
newsSite string
summary string
publishedAt string
launches [{
id* string
provider string
}]
events [{
id* string
provider string
}]
}
This one actually json :
{
"employee":{"name":"John", "age":30, "city":"New York"}
}