code: def indicator_details(indicator):
      
      metrics = format_metrics_json(indicator)
  
      metrics_list = set(indicator.metrics
                         .filter(name__in=metrics_name_map.keys())
                         .values_list('name', flat=True))
      null_metrics = default_metrics
      for keys in metrics_list:
          null_metrics.pop(metrics_name_map[keys], None)
  
      metrics.update(null_metrics)
  
      return {type(indicator).__name__: {
              'valor': indicator.value,
              'metricas': metrics, },
              }
docs: Return a dictionary with all metrics in FinancialIndicator,
      if there aren't values for that Indicator, it is filled with default values