You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
788 B

3 years ago
class Friend {
String? userID;
String? firstname;
String? surname;
String? dateOfBirth;
String? thumbnail;
String? description;
String? posts;
String? following;
String? friendsNum;
3 years ago
Friend(
{this.userID,
this.firstname,
this.surname,
this.dateOfBirth,
this.thumbnail,
this.description,
this.following,
this.friendsNum,
this.posts});
Friend.fromJson(Map<String, dynamic> 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'];
}