Firstly, use Block instead of DataType, name the block as "TestDataType" and create two properties P1: String and P2:Integer. Like this
Then make your input typed as "TestDataType" and you can access to input.P1 and input.P2. Like this
Hope it helps!