CommentCreateDTO.fromJson constructor

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

Implementation

factory CommentCreateDTO.fromJson(Map<String, Object?> json) {
  return CommentCreateDTO(
    body: json[r'body'] as String?,
    public: json[r'public'] as bool? ?? false,
  );
}