CpuUsageInfoModel class
Model class representing CPU usage information.
- Annotations
-
- @freezed
Constructors
- CpuUsageInfoModel({double? userPercentage, double? sysPercentage, double? idlePercentage})
-
Factory constructor for creating a new
CpuUsageInfoModelinstance.constfactory -
CpuUsageInfoModel.fromJson(Map<
String, dynamic> json) -
Factory method for creating a
CpuUsageInfoModelfrom a JSON object.factory
Properties
-
copyWith
→ $CpuUsageInfoModelCopyWith<
CpuUsageInfoModel> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- idlePercentage → double?
-
The percentage of CPU time spent idle.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sysPercentage → double?
-
The percentage of CPU time spent on system (kernel) processes.
no setterinherited
- userPercentage → double?
-
The percentage of CPU time spent on user processes.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited