Serialize model objects with a consistent interface
