How can I get the device id and device name?

Hello, I am developing an application using ReactJS, I am having a problem that how can I get the device id and device name?

I have researched through this link: ProductInfo API | Samsung Developer

Do I use getDuid method to get the device id?
Do I use getModel or getRealModel to get the device name?

I hope everyone can help me, thank you.

Hello

For Smart TV questions, please log in to TV Seller Office: (Seller2.0), go to the 1:1 Q&A section, and ask a question.