Add serialization methods to AppModel