GoogleChromeManagementV1UsbPeripheralReport.fromJson constructor

GoogleChromeManagementV1UsbPeripheralReport.fromJson(
  1. Map json_
)

Implementation

GoogleChromeManagementV1UsbPeripheralReport.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        classId: json_.containsKey('classId')
            ? json_['classId'] as core.int
            : null,
        firmwareVersion: json_.containsKey('firmwareVersion')
            ? json_['firmwareVersion'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pid: json_.containsKey('pid') ? json_['pid'] as core.int : null,
        subclassId: json_.containsKey('subclassId')
            ? json_['subclassId'] as core.int
            : null,
        vendor: json_.containsKey('vendor')
            ? json_['vendor'] as core.String
            : null,
        vid: json_.containsKey('vid') ? json_['vid'] as core.int : null,
      );