def METHOD_NAME(attachment):
    fields = [
        attachment.id,
        attachment.attachment_id,
        attachment.name,
        attachment.content_type,
        attachment.md5,
        attachment.case_id,
        attachment.blob_id,
        attachment.content_length,
        json.dumps(attachment.properties, cls=JSONEncoder),
        attachment.blob_bucket,
    ]
    return ObjectAdapter(fields, CaseAttachment._meta.db_table)