code: def get_mapping_format(self):
          
          if self.format == DataFormat.json or self.format == DataFormat.avro:
              return self.format.name
          else:
              return DataFormat.csv.name
docs: Dictating the corresponding mapping to the format.