code: def format(self, model: AssetAllocationModel, full: bool = False):
          
          self.full = full
  
          # Header
          output = f"Asset Allocation model, total: {model.currency} {model.total_amount:,.2f}\n"
  
          # Column Headers
          for column in self.columns:
              name = column['name']
              if not self.full and name == "loc.cur.":
                  # Skip local currency if not displaying stocks.
                  continue
              width = column["width"]
              output += f"{name:^{width}}"
          output += "\n"
          output += f"-------------------------------------------------------------------------------\n"
  
          # Asset classes
  
          view_model = ModelMapper(model).map_to_linear(self.full)
          for row in view_model:
              output += self.__format_row(row) + "\n"
  
          return output
docs: Returns the view-friendly output of the aa model