Consider moving serialization configurations into it's own file, in my opinion it would make the code and the configuration itself more readable.