BugsnagApp.fromJson constructor

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

Implementation

BugsnagApp.fromJson(Map<String, Object?> json)
    : binaryArch = json.safeGet('binaryArch'),
      buildUUID = json.safeGet('buildUUID'),
      bundleVersion = json.safeGet('bundleVersion'),
      dsymUuids = json
          .safeGet<List>('dsymUUIDs')
          ?.cast<String>()
          .toList(growable: true),
      id = json.safeGet('id'),
      releaseStage = json.safeGet('releaseStage'),
      type = json.safeGet('type'),
      version = json.safeGet('version'),
      versionCode = json.safeGet<num>('versionCode')?.toInt();