<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromFeatureClass(fc, paramName):
 """ returns a GPFeatureRecordSetLayer object from a feature class Input: fc - path to a feature class paramName - name of the parameter """

        from ..common.spatial import featureclass_to_json
        val = json.loads(featureclass_to_json(fc))
        v = GPFeatureRecordSetLayer()
        v.value = val
        v.paramName = paramName
        return v