Create a Post data class named Post.kt, and here is the sample code:
data class Post(
@SerializedName("id") var postId: Long?,
@SerializedName("text") var text: String?,
@SerializedName("postedBy") var profile: Profile?,
@SerializedName("accCreatedTime") var accCreatedTime: String?,
@SerializedName("comments") var comment: ArrayList<Comment>?,
@SerializedName("likes") var likes: ArrayList<Like>?
)