Hi and welcome.
There certainly seems to be a genetic component to both Type 1 and Type 2, which might make you more likely to become diabetic, but that doesn't pre-ordain anyone actually becoming diabetic. There's quite a bit of both types in my family background, but I think it's way more likely that my pre-2019 starchy carbohydrate diet of lots of bread, pasta, rice, potatoes, fruit and fruit juice (as still recommended by the NHS) was more the direct cause of my T2.
If you think about it, if it was purely genetic, we wouldn't be seeing the growth in T2 numbers that's happening - that growth, in my opinion, is because of changes to diet and lifestyle in the last 30-40 years.
Once diagnosed in 2019 - I'd been an undiagnosed diabetic for about ten years, with a long list of symptoms, some very unpleasant - I dropped carb intake down to 20g/day and have been living off meat, dairy and green veg since, very happily.
I had normal blood glucose within four months and in the years since have lost around 90lbs. Officially "in remission" for some years now. If you have a look at the "Success Stories" part of the forum you'll see a number of accounts from people who have successfully lowered their blood glucose levels. No reason why you couldn't try that.
Best of luck. this forum is a great resource, and questions are encouraged.