def from_dict(d):
        """Transform the dict to a record object and return the record."""
        query_params_match = d.get('@query_params_match')
        query_person_match = d.get('@query_person_match')
        valid_since = d.get('@valid_since')
        if valid_since:
            valid_since = str_to_datetime(valid_since)
        source = Source.from_dict(d.get('source', {}))
        fields = Record.fields_from_dict(d)
        return Record(source=source, fields=fields, 
                      query_params_match=query_params_match, 
                      query_person_match=query_person_match, 
                      valid_since=valid_since)
Transform the dict to a record object and return the record.