NonSdkApiInsight.fromJson constructor

NonSdkApiInsight.fromJson(
  1. Map _json
)

Implementation

NonSdkApiInsight.fromJson(core.Map _json)
    : this(
        exampleTraceMessages: _json.containsKey('exampleTraceMessages')
            ? (_json['exampleTraceMessages'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        matcherId: _json.containsKey('matcherId')
            ? _json['matcherId'] as core.String
            : null,
        pendingGoogleUpdateInsight:
            _json.containsKey('pendingGoogleUpdateInsight')
                ? PendingGoogleUpdateInsight.fromJson(
                    _json['pendingGoogleUpdateInsight']
                        as core.Map<core.String, core.dynamic>)
                : null,
        upgradeInsight: _json.containsKey('upgradeInsight')
            ? UpgradeInsight.fromJson(_json['upgradeInsight']
                as core.Map<core.String, core.dynamic>)
            : null,
      );