GoogleSecuritySafebrowsingV4ThreatInfo.fromJson constructor Null safety

GoogleSecuritySafebrowsingV4ThreatInfo.fromJson(
  1. Map _json
)

Implementation

GoogleSecuritySafebrowsingV4ThreatInfo.fromJson(core.Map _json)
    : this(
        platformTypes: _json.containsKey('platformTypes')
            ? (_json['platformTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        threatEntries: _json.containsKey('threatEntries')
            ? (_json['threatEntries'] as core.List)
                .map((value) =>
                    GoogleSecuritySafebrowsingV4ThreatEntry.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        threatEntryTypes: _json.containsKey('threatEntryTypes')
            ? (_json['threatEntryTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        threatTypes: _json.containsKey('threatTypes')
            ? (_json['threatTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );