class ChildrenDeviceInfo {

    private String id;

    private String name;

    private String description;

    private DeviceState state;

    public static ChildrenDeviceInfo of(DeviceInstanceEntity instance){<FILL_FUNCTION_BODY>}
}

        ChildrenDeviceInfo deviceInfo=new ChildrenDeviceInfo();
        deviceInfo.setId(instance.getId());
        deviceInfo.setName(instance.getName());
        deviceInfo.setState(instance.getState());
        deviceInfo.setDescription(instance.getDescribe());

        return deviceInfo;
    
<no_super_class>