DeviceInfo.fromJson constructor

DeviceInfo.fromJson(
  1. Map json_
)

Implementation

DeviceInfo.fromJson(core.Map json_)
    : this(
        deviceModelName: json_.containsKey('deviceModelName')
            ? json_['deviceModelName'] as core.String
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        languageCodeFromWebview: json_.containsKey('languageCodeFromWebview')
            ? json_['languageCodeFromWebview'] as core.String
            : null,
        languageCodeRaw: json_.containsKey('languageCodeRaw')
            ? json_['languageCodeRaw'] as core.String
            : null,
        screenResolutionHeight: json_.containsKey('screenResolutionHeight')
            ? json_['screenResolutionHeight'] as core.String
            : null,
        screenResolutionWidth: json_.containsKey('screenResolutionWidth')
            ? json_['screenResolutionWidth'] as core.String
            : null,
        timezone: json_.containsKey('timezone')
            ? json_['timezone'] as core.String
            : null,
      );