find the appropriate parameter for a parameter field

def _match_data_to_parameter(cls, data):
    """ find the appropriate parameter for a parameter field """
    in_value = data["in"]
    for cls in [QueryParameter, HeaderParameter, FormDataParameter,
                PathParameter, BodyParameter]:
        if in_value == cls.IN:
            return cls
    return None