added toJSON transformer to models for proper API response