fixed for dart sdk changes and added DateTime serialize support