Created encoder for GEMItem model class