CreateInlineCommentModel.fromJson constructor

CreateInlineCommentModel.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CreateInlineCommentModel.fromJson(Map<String, Object?> json) {
  return CreateInlineCommentModel(
    blogPostId: json[r'blogPostId'] as String?,
    pageId: json[r'pageId'] as String?,
    parentCommentId: json[r'parentCommentId'] as String?,
    body: json[r'body'],
    inlineCommentProperties: json[r'inlineCommentProperties'] != null
        ? CreateInlineCommentModelInlineCommentProperties.fromJson(
            json[r'inlineCommentProperties']! as Map<String, Object?>)
        : null,
  );
}