def METHOD_NAME(self, writer, ttFont):
    writer.simpletag(
        "version",
        major=getattr(self, "majorVersion", 1),
        minor=getattr(self, "minorVersion", 0),
    )
    writer.newline()
    axisTags = [axis.axisTag for axis in ttFont["fvar"].axes]
    for axis in axisTags:
        writer.begintag("segment", axis=axis)
        writer.newline()
        for key, value in sorted(self.segments[axis].items()):
            key = fl2str(key, 14)
            value = fl2str(value, 14)
            writer.simpletag("mapping", **{"from": key, "to": value})
            writer.newline()
        writer.endtag("segment")
        writer.newline()
    if getattr(self, "majorVersion", 1) >= 2:
        if self.table.VarIdxMap:
            self.table.VarIdxMap.METHOD_NAME(writer, ttFont, name="VarIdxMap")
        if self.table.VarStore:
            self.table.VarStore.METHOD_NAME(writer, ttFont)