def METHOD_NAME(
    record: V10CredentialExchange,
) -> Optional[Dict[str, str]]:
    preview = None
    if (
        record.credential_proposal_dict
        and record.credential_proposal_dict.credential_proposal
    ):
        preview = record.credential_proposal_dict.credential_proposal
    return {attr.name: attr.value for attr in preview.attributes} if preview else None