toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'threadId': threadId,
'cpuUsage': cpuUsage,
'userTime': userTime,
'systemTime': systemTime,
'runState': runState,
'threadName': threadName,
'isActive': isActive,
};
}