serialize from memory for transient model instannces