def convert(self, ctx: Context) -> object:
    if (ctx.direction == Direction.serialize):
        return str(ctx.value)
    else:
        return parse_version(ctx.value)
def convert(self, ctx: Context) -> object:
    if (ctx.direction == Direction.serialize):
        return str(ctx.value)
    else:
        return parse_version(ctx.value)