CopyPastor

Detecting plagiarism made easy.

Score: 0.9818730333843968; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2021-10-13
by Anmol Mishra

Original Post

Original - Posted on 2018-08-15
by Dhiraj Sharma



            
Present in both answers; Present only in the new answer; Present only in the old answer;

API returns JSON array not json object so that is List not Map.
i.e. User json is first element of Json Array.
So to get first element use first index. Inside fetch Info update
return Users.fromJson(jsonresponse[0]);
API returns JSON array not json object so that is List not Map.
i.e. User json is first element of Json Array.
So to get first element use first index. Inside fetch Info update
`return Users.fromJson(jsonresponse[0]);`

        
Present in both answers; Present only in the new answer; Present only in the old answer;