DeviceMetadata.fromJson constructor

DeviceMetadata.fromJson(
  1. Map json_
)

Implementation

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