add toJson/fromJson to Model