Converts a data object into the desired output format.
Takes a piece of structured data, such as an object or a list, and turns it into a single piece of text in the format you choose. Use this when a system you send data to expects one ready-made string instead of separate fields, for example a JSON body for an API, an XML document, or a YAML file. You pick the formatter, and this mapper hands your data to it and returns the formatted text. If you already know which format you need, the dedicated mappers (Format to JSON, Format to XML, and so on) are quicker to set up; reach for this one when you want to choose the formatter yourself or keep it configurable.