class Lutaml::Model::Xml::Mapping

def import_model_mappings(model)

def import_model_mappings(model)
  raise Lutaml::Model::ImportModelWithRootError.new(model) if model.root?
  mappings = model.mappings_for(:xml)
  @elements.merge!(mappings.instance_variable_get(:@elements))
  @attributes.merge!(mappings.instance_variable_get(:@attributes))
  (@element_sequence << mappings.element_sequence).flatten!
end