Adding createdAt property to serialization

The createdAt property was not serialized so the isExpired() method was not working as intended.