class Friend { String userID; String firstname; String surname; String dateOfBirth; String thumbnail; String description; String posts; String following; String friendsNum; Friend( {this.userID, this.firstname, this.surname, this.dateOfBirth, this.thumbnail, this.description, this.following, this.friendsNum, this.posts}); Friend.fromJson(Map json) : userID = json['userID'], firstname = json['firstname'], surname = json['surname'], thumbnail = json['thumbnail'], description = json['description'], friendsNum = json['friends'], following = json['following'], posts = json['posts'], dateOfBirth = json['dob']; }