MachineArchitectureDetails.fromJson constructor

MachineArchitectureDetails.fromJson(
  1. Map json_
)

Implementation

MachineArchitectureDetails.fromJson(core.Map json_)
    : this(
        bios: json_.containsKey('bios')
            ? BiosDetails.fromJson(
                json_['bios'] as core.Map<core.String, core.dynamic>)
            : null,
        cpuArchitecture: json_.containsKey('cpuArchitecture')
            ? json_['cpuArchitecture'] as core.String
            : null,
        cpuName: json_.containsKey('cpuName')
            ? json_['cpuName'] as core.String
            : null,
        cpuSocketCount: json_.containsKey('cpuSocketCount')
            ? json_['cpuSocketCount'] as core.int
            : null,
        cpuThreadCount: json_.containsKey('cpuThreadCount')
            ? json_['cpuThreadCount'] as core.int
            : null,
        firmwareType: json_.containsKey('firmwareType')
            ? json_['firmwareType'] as core.String
            : null,
        hyperthreading: json_.containsKey('hyperthreading')
            ? json_['hyperthreading'] as core.String
            : null,
        vendor: json_.containsKey('vendor')
            ? json_['vendor'] as core.String
            : null,
      );