CommentNestedBodyWrite.fromJson constructor

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

Implementation

factory CommentNestedBodyWrite.fromJson(Map<String, Object?> json) {
  return CommentNestedBodyWrite(
    storage: json[r'storage'] != null
        ? CommentBodyWrite.fromJson(json[r'storage']! as Map<String, Object?>)
        : null,
    atlasDocFormat: json[r'atlas_doc_format'] != null
        ? CommentBodyWrite.fromJson(
            json[r'atlas_doc_format']! as Map<String, Object?>)
        : null,
    wiki: json[r'wiki'] != null
        ? CommentBodyWrite.fromJson(json[r'wiki']! as Map<String, Object?>)
        : null,
  );
}