Merge convertParams and convertFromJson methods