serialize by self model