def METHOD_NAME(self, custom_fields_raw: list, match: dict):
    custom_fields = {}
    position = 0
    for field in custom_fields_raw:
        if (isinstance(field['value'], str)):
            value = self.lookup_field(match, field['value'], field['value'])
        else:
            value = field['value']
        custom_fields[field['name']] = {'order': position, field['type']: value}
        position += 1
    return custom_fields