ScanConfig.fromJson constructor

ScanConfig.fromJson(
  1. Map json_
)

Implementation

ScanConfig.fromJson(core.Map json_)
    : this(
        authentication: json_.containsKey('authentication')
            ? Authentication.fromJson(json_['authentication']
                as core.Map<core.String, core.dynamic>)
            : null,
        blacklistPatterns: json_.containsKey('blacklistPatterns')
            ? (json_['blacklistPatterns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        exportToSecurityCommandCenter:
            json_.containsKey('exportToSecurityCommandCenter')
                ? json_['exportToSecurityCommandCenter'] as core.String
                : null,
        ignoreHttpStatusErrors: json_.containsKey('ignoreHttpStatusErrors')
            ? json_['ignoreHttpStatusErrors'] as core.bool
            : null,
        managedScan: json_.containsKey('managedScan')
            ? json_['managedScan'] as core.bool
            : null,
        maxQps:
            json_.containsKey('maxQps') ? json_['maxQps'] as core.int : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        riskLevel: json_.containsKey('riskLevel')
            ? json_['riskLevel'] as core.String
            : null,
        schedule: json_.containsKey('schedule')
            ? Schedule.fromJson(
                json_['schedule'] as core.Map<core.String, core.dynamic>)
            : null,
        startingUrls: json_.containsKey('startingUrls')
            ? (json_['startingUrls'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        staticIpScan: json_.containsKey('staticIpScan')
            ? json_['staticIpScan'] as core.bool
            : null,
        userAgent: json_.containsKey('userAgent')
            ? json_['userAgent'] as core.String
            : null,
      );