BugsnagDevice.fromJson constructor

BugsnagDevice.fromJson(
  1. Map<String, Object?> json
)

Implementation

BugsnagDevice.fromJson(Map<String, Object?> json)
    : cpuAbi = json.safeGet('cpuAbi'),
      id = json.safeGet('id'),
      jailbroken = json.safeGet('jailbroken'),
      locale = json.safeGet('locale'),
      manufacturer = json.safeGet('manufacturer'),
      modelNumber = json.safeGet('modelNumber'),
      model = json.safeGet('model'),
      osName = json.safeGet('osName'),
      osVersion = json.safeGet('osVersion'),
      runtimeVersions = json
          .safeGet<Map>('runtimeVersions')
          ?.map((key, value) => MapEntry(key as String, value as String)),
      totalMemory = json.safeGet<num>('totalMemory')?.toInt();