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
760 B
34 lines
760 B
3 years ago
|
class InboxMessage {
|
||
|
String userID;
|
||
|
String firstname;
|
||
|
String surname;
|
||
|
String messageID;
|
||
|
String message;
|
||
|
String thumbnail;
|
||
|
String bio;
|
||
|
DateTime timestamp;
|
||
|
int unread;
|
||
|
|
||
|
InboxMessage(
|
||
|
{this.userID,
|
||
|
this.firstname,
|
||
|
this.surname,
|
||
|
this.messageID,
|
||
|
this.message,
|
||
|
this.thumbnail,
|
||
|
this.timestamp,
|
||
|
this.bio,
|
||
|
this.unread});
|
||
|
|
||
|
InboxMessage.fromJson(Map<dynamic, dynamic> json)
|
||
|
: userID = json['userID'],
|
||
|
firstname = json['firstname'],
|
||
|
surname = json['surname'],
|
||
|
thumbnail = json['thumbnail'],
|
||
|
messageID = json['messageID'],
|
||
|
message = json['message'],
|
||
|
timestamp = json['timestamp'],
|
||
|
bio = json['bio'],
|
||
|
unread = json['unread'];
|
||
|
}
|