CommentMetadata.fromJson constructor
CommentMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CommentMetadata.fromJson(Map<String, dynamic> json) {
return CommentMetadata(
commentId: json['CommentId'] as String?,
commentStatus: (json['CommentStatus'] as String?)?.toCommentStatusType(),
contributor: json['Contributor'] != null
? User.fromJson(json['Contributor'] as Map<String, dynamic>)
: null,
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
recipientId: json['RecipientId'] as String?,
);
}