'How to deserialize response from CLI command?

I am using Java core to build an adapter that connects to the device to get the data. I get into problems with deserializing response data from device. I am wondering if we have any way to auto deserialize these data to Java objects in an automatic way?

Here is the response data

Part Number            : B-292D-HD2
Serial Number          : DAK-031428016165
Firmware Version       : 2.5.6
Firmware Date          : "Feb 28 2020"
Firmware Time          : "15:53:30"
Firmware Options       : "KLV, SRT"
Hardware Version       : --
Hardware Compatibility : -001G
CPLD Version           : 9 (Official, Internal flash)
Boot Version           : "U-Boot 2010.06 (Mar 19 2014 - 10:37:19)-Mankata MF 0.9.14" ```


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source