code: def __get_ac_row(self, ac: model.AssetClass) -> AssetAllocationViewModel:
          
          view_model = AssetAllocationViewModel()
  
          view_model.depth = ac.depth
          
          # Name
          view_model.name = ac.name
  
          view_model.set_allocation = ac.allocation
          view_model.curr_allocation = ac.curr_alloc
          view_model.diff_allocation = ac.alloc_diff
          view_model.alloc_diff_perc = ac.alloc_diff_perc
  
          # value
          view_model.curr_value = ac.curr_value
          # expected value
          view_model.set_value = ac.alloc_value
          # diff
          view_model.diff_value = ac.value_diff
  
          return view_model
docs: Formats one Asset Class record