class Canon::Diff::DiffLine

def to_h

def to_h
  {
    line_number: line_number,
    new_position: new_position,
    content: content,
    new_content: new_content,
    type: type,
    diff_node: diff_node&.to_h,
    normative: normative?,
    informative: informative?,
    formatting: formatting?,
    char_ranges: @char_ranges.map(&:to_h),
    new_char_ranges: @new_char_ranges.map(&:to_h),
  }
end