Added datetime encoder
Extracted the nullable decorator to a helpers module