Dictating the corresponding mapping to the format.

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