add converting to Json deconverting to Model logic