DeviceMetadata.fromJson constructor

DeviceMetadata.fromJson(
  1. Map json_
)

Implementation

DeviceMetadata.fromJson(core.Map json_)
  : this(
      cpuMake: json_['cpuMake'] as core.String?,
      cpuModel: json_['cpuModel'] as core.String?,
      deviceClass: json_['deviceClass'] as core.String?,
      glEsVersion: json_['glEsVersion'] as core.int?,
      manufacturer: json_['manufacturer'] as core.String?,
      nativePlatform: json_['nativePlatform'] as core.String?,
      productName: json_['productName'] as core.String?,
      ramMb: json_['ramMb'] as core.int?,
      screenDensityDpi: json_['screenDensityDpi'] as core.int?,
      screenHeightPx: json_['screenHeightPx'] as core.int?,
      screenWidthPx: json_['screenWidthPx'] as core.int?,
    );