class Lutaml::Model::KeyValueMappingRule

def deep_dup

def deep_dup
  self.class.new(
    name.dup,
    to: to.dup,
    render_nil: render_nil.dup,
    with: Utils.deep_dup(custom_methods),
    delegate: delegate,
    child_mappings: Utils.deep_dup(child_mappings),
  )
end

def initialize(

def initialize(
  name,
  to:,
  render_nil: false,
  with: {},
  delegate: nil,
  child_mappings: nil
)
  super(
    name,
    to: to,
    render_nil: render_nil,
    with: with,
    delegate: delegate,
  )
  @child_mappings = child_mappings
end