Files
fcs/lib/vo/report_user.dart
2020-05-29 07:45:27 +06:30

34 lines
667 B
Dart

class ReportUser {
String id;
String reportID;
String reportName;
String userID;
String userName;
ReportUser({
this.id,
this.reportID,
this.reportName,
this.userID,
this.userName,
});
factory ReportUser.fromMap(Map<String, dynamic> map, String docID) {
return ReportUser(
id: docID,
reportID: map['report_id'],
reportName: map['report_name'],
userID: map['user_id'],
userName: map['user_name'],
);
}
Map<String, dynamic> toMap() {
return {
"id": id,
"report_id": reportID,
"report_name": reportName,
"user_id": userID,
"user_name": userName
};
}
}