DeviceIdentifier.fromJson constructor

DeviceIdentifier.fromJson(
  1. Map json_
)

Implementation

DeviceIdentifier.fromJson(core.Map json_)
    : this(
        chromeOsAttestedDeviceId:
            json_.containsKey('chromeOsAttestedDeviceId')
                ? json_['chromeOsAttestedDeviceId'] as core.String
                : null,
        deviceType: json_.containsKey('deviceType')
            ? json_['deviceType'] as core.String
            : null,
        imei: json_.containsKey('imei') ? json_['imei'] as core.String : null,
        manufacturer: json_.containsKey('manufacturer')
            ? json_['manufacturer'] as core.String
            : null,
        meid: json_.containsKey('meid') ? json_['meid'] as core.String : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
      );