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.

38 lines
1017 B

3 years ago
import 'dart:core';
class ReportedContent {
String userGuid;
String postID;
String publisherID;
DateTime timestamp;
int report;
ReportedContent(
{this.postID,
this.publisherID,
this.report,
this.timestamp,
this.userGuid});
ReportedContent.fromJSON(Map<String, dynamic> json)
: postID = json["postID"],
publisherID = json['publisherID'],
report = int.parse(json['report']),
userGuid = json['userGuid'],
timestamp = DateTime.parse(json['timestamp']);
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['postID'] = this.postID;
data['publisherID'] = this.publisherID;
data['report'] = this.report;
data['userGuid'] = this.userGuid;
data['timestamp'] = this.timestamp;
return data;
}
@override
String toString() {
return '{"postID":"$postID","publisherID": "$publisherID", "report": "$report","userGuid": "$userGuid","timestamp":"$timestamp"}';
}
}