Comment.parseJson constructor
Implementation
Comment.parseJson(
Map<String, dynamic> json
):
userID = json['userID'],
text = json['text'],
vote = json['vote'],
isUpdated = json['isUpdated'],
createdAt = json['createdAt'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(json['createdAt']),
updatedAt = json['updatedAt'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(json['updatedAt']);