match x: case Class(foo = 1, bar=2): pass