ApplicationReport.fromJson constructor

ApplicationReport.fromJson(
  1. Map json_
)

Implementation

ApplicationReport.fromJson(core.Map json_)
    : this(
        applicationSource: json_.containsKey('applicationSource')
            ? json_['applicationSource'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        events: json_.containsKey('events')
            ? (json_['events'] as core.List)
                .map((value) => ApplicationEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        installerPackageName: json_.containsKey('installerPackageName')
            ? json_['installerPackageName'] as core.String
            : null,
        keyedAppStates: json_.containsKey('keyedAppStates')
            ? (json_['keyedAppStates'] as core.List)
                .map((value) => KeyedAppState.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        packageName: json_.containsKey('packageName')
            ? json_['packageName'] as core.String
            : null,
        packageSha256Hash: json_.containsKey('packageSha256Hash')
            ? json_['packageSha256Hash'] as core.String
            : null,
        signingKeyCertFingerprints:
            json_.containsKey('signingKeyCertFingerprints')
                ? (json_['signingKeyCertFingerprints'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        userFacingType: json_.containsKey('userFacingType')
            ? json_['userFacingType'] as core.String
            : null,
        versionCode: json_.containsKey('versionCode')
            ? json_['versionCode'] as core.int
            : null,
        versionName: json_.containsKey('versionName')
            ? json_['versionName'] as core.String
            : null,
      );