Comment.parseJson constructor

Comment.parseJson(
  1. Map<String, dynamic> json
)

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']);