-2

I want to build a model based on a json, but I encountered a null object error.

image of Json and models made in android studio

enter image description here

Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46

1 Answers1

0

Your score data type in String :

@SerializedName("score")
private String score;

public String getScore(){
    return score;
}

public setScore(String score){
    this.score = score;
}
Ashish
  • 6,791
  • 3
  • 26
  • 48