Try Gmail to Office 365 migration tool to transfer Gmail messages to Office 365 webmail account. It enables you to export Gmail mailbox to Office 365 along with attachments, contacts, calendars, etc.
More Info:- https://www.zooksoftware.com/blog/gmail-to-office-365/