CPUInfo.fromJson constructor

CPUInfo.fromJson(
  1. String source
)

fromJson is the method to convert the json to a class.

Implementation

factory CPUInfo.fromJson(String source) =>
    CPUInfo.fromMap(json.decode(source));