Design a method to serialize and deserialize a binary tree. There are no specific constraints on how the serialization and deserialization should be implemented; the key requirement is that the serialized binary tree must be convertible back into the original tree structure.
Examples
Input: root = [5,3,8,1,4,6,9]
Output: [5,3,8,1,4,6,9]
Explanation: The tree structure remains unchanged after serialization and deserialization.
Input: root = [1,null,2]
Output: [1,null,2]
Explanation: The tree structure remains unchanged after serialization and deserialization.
Input: root = [2,1,7]
Output: [2,1,7]
Explanation: The tree structure remains unchanged after serialization and deserialization.