FeatureRequestComment.fromJson constructor
FeatureRequestComment.fromJson( - Map<String, dynamic> json
)
Implementation
factory FeatureRequestComment.fromJson(Map<String, dynamic> json) {
return FeatureRequestComment(
id: json['id'] as String? ?? '',
featureRequestId: json['featureRequestId'] as String? ?? '',
authorName: json['authorName'] as String?,
authorEmail: json['authorEmail'] as String?,
authorAvatarUrl: json['authorAvatarUrl'] as String?,
authorClerkId: json['authorClerkId'] as String?,
body: json['body'] as String? ?? '',
parentId: json['parentId'] as String?,
replyToClerkId: json['replyToClerkId'] as String?,
replyToAuthorName: json['replyToAuthorName'] as String?,
isHidden: json['isHidden'] as bool? ?? false,
createdAt: json['createdAt'] as String? ?? '',
);
}