CommentBodyWrite.fromJson constructor

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

Implementation

factory CommentBodyWrite.fromJson(Map<String, Object?> json) {
  return CommentBodyWrite(
    representation: json[r'representation'] != null
        ? CommentBodyWriteRepresentation.fromValue(
            json[r'representation']! as String)
        : null,
    value: json[r'value'] as String?,
  );
}