Serializationframework for models