Room.fromMap constructor
Implementation
Room.fromMap(Map<String, dynamic>? json) {
if (json != null) {
id = json['_id'];
rid = json['rid'];
updatedAt = json['_updatedAt'] != null
? DateTime.parse(json['_updatedAt'])
: null;
t = json['t'];
msgs = json['msgs'];
ts = DateTime.parse(json['ts']);
lm = DateTime.parse(json['lm']);
topic = json['topic'];
usernames =
usernames != null ? List<String>.from(json['usernames']) : null;
}
}