FooterCommentModel.fromJson constructor
Implementation
factory FooterCommentModel.fromJson(Map<String, Object?> json) {
return FooterCommentModel(
id: json[r'id'],
status: json[r'status'] as String?,
title: json[r'title'] as String?,
blogPostId: json[r'blogPostId'],
pageId: json[r'pageId'],
parentCommentId: json[r'parentCommentId'],
version: json[r'version'] != null
? Version.fromJson(json[r'version']! as Map<String, Object?>)
: null,
body: json[r'body'] != null
? BodySingle.fromJson(json[r'body']! as Map<String, Object?>)
: null,
links: json[r'_links'] != null
? CommentLinks.fromJson(json[r'_links']! as Map<String, Object?>)
: null,
);
}