def METHOD_NAME(self, ttFont):
    axisTags = [axis.axisTag for axis in ttFont["fvar"].axes]
    if not hasattr(self, "table"):
        self.table = otTables.avar()
    if not hasattr(self.table, "Reserved"):
        self.table.Reserved = 0
    self.table.Version = (getattr(self, "majorVersion", 1) << 16) | getattr(
        self, "minorVersion", 0
    )
    self.table.AxisCount = len(axisTags)
    self.table.AxisSegmentMap = []
    for axis in axisTags:
        mappings = self.segments[axis]
        segmentMap = otTables.AxisSegmentMap()
        segmentMap.PositionMapCount = len(mappings)
        segmentMap.AxisValueMap = []
        for key, value in sorted(mappings.items()):
            valueMap = otTables.AxisValueMap()
            valueMap.FromCoordinate = key
            valueMap.ToCoordinate = value
            segmentMap.AxisValueMap.append(valueMap)
        self.table.AxisSegmentMap.append(segmentMap)
    return super().METHOD_NAME(ttFont)