Accelerator.fromJson constructor

Accelerator.fromJson(
  1. Map json_
)

Implementation

Accelerator.fromJson(core.Map json_)
    : this(
        count:
            json_.containsKey('count') ? json_['count'] as core.String : null,
        driverVersion: json_.containsKey('driverVersion')
            ? json_['driverVersion'] as core.String
            : null,
        installGpuDrivers: json_.containsKey('installGpuDrivers')
            ? json_['installGpuDrivers'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );