DeviceSignals.fromJson constructor

DeviceSignals.fromJson(
  1. Map json_
)

Implementation

DeviceSignals.fromJson(core.Map json_)
    : this(
        allowScreenLock: json_.containsKey('allowScreenLock')
            ? json_['allowScreenLock'] as core.bool
            : null,
        browserVersion: json_.containsKey('browserVersion')
            ? json_['browserVersion'] as core.String
            : null,
        builtInDnsClientEnabled: json_.containsKey('builtInDnsClientEnabled')
            ? json_['builtInDnsClientEnabled'] as core.bool
            : null,
        chromeRemoteDesktopAppBlocked:
            json_.containsKey('chromeRemoteDesktopAppBlocked')
                ? json_['chromeRemoteDesktopAppBlocked'] as core.bool
                : null,
        crowdStrikeAgent: json_.containsKey('crowdStrikeAgent')
            ? CrowdStrikeAgent.fromJson(json_['crowdStrikeAgent']
                as core.Map<core.String, core.dynamic>)
            : null,
        deviceAffiliationIds: json_.containsKey('deviceAffiliationIds')
            ? (json_['deviceAffiliationIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        deviceEnrollmentDomain: json_.containsKey('deviceEnrollmentDomain')
            ? json_['deviceEnrollmentDomain'] as core.String
            : null,
        deviceManufacturer: json_.containsKey('deviceManufacturer')
            ? json_['deviceManufacturer'] as core.String
            : null,
        deviceModel: json_.containsKey('deviceModel')
            ? json_['deviceModel'] as core.String
            : null,
        diskEncryption: json_.containsKey('diskEncryption')
            ? json_['diskEncryption'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        hostname: json_.containsKey('hostname')
            ? json_['hostname'] as core.String
            : null,
        imei: json_.containsKey('imei')
            ? (json_['imei'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        macAddresses: json_.containsKey('macAddresses')
            ? (json_['macAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        meid: json_.containsKey('meid')
            ? (json_['meid'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        operatingSystem: json_.containsKey('operatingSystem')
            ? json_['operatingSystem'] as core.String
            : null,
        osFirewall: json_.containsKey('osFirewall')
            ? json_['osFirewall'] as core.String
            : null,
        osVersion: json_.containsKey('osVersion')
            ? json_['osVersion'] as core.String
            : null,
        passwordProtectionWarningTrigger:
            json_.containsKey('passwordProtectionWarningTrigger')
                ? json_['passwordProtectionWarningTrigger'] as core.String
                : null,
        profileAffiliationIds: json_.containsKey('profileAffiliationIds')
            ? (json_['profileAffiliationIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        profileEnrollmentDomain: json_.containsKey('profileEnrollmentDomain')
            ? json_['profileEnrollmentDomain'] as core.String
            : null,
        realtimeUrlCheckMode: json_.containsKey('realtimeUrlCheckMode')
            ? json_['realtimeUrlCheckMode'] as core.String
            : null,
        safeBrowsingProtectionLevel:
            json_.containsKey('safeBrowsingProtectionLevel')
                ? json_['safeBrowsingProtectionLevel'] as core.String
                : null,
        screenLockSecured: json_.containsKey('screenLockSecured')
            ? json_['screenLockSecured'] as core.String
            : null,
        secureBootMode: json_.containsKey('secureBootMode')
            ? json_['secureBootMode'] as core.String
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        siteIsolationEnabled: json_.containsKey('siteIsolationEnabled')
            ? json_['siteIsolationEnabled'] as core.bool
            : null,
        systemDnsServers: json_.containsKey('systemDnsServers')
            ? (json_['systemDnsServers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        thirdPartyBlockingEnabled:
            json_.containsKey('thirdPartyBlockingEnabled')
                ? json_['thirdPartyBlockingEnabled'] as core.bool
                : null,
        trigger: json_.containsKey('trigger')
            ? json_['trigger'] as core.String
            : null,
        windowsMachineDomain: json_.containsKey('windowsMachineDomain')
            ? json_['windowsMachineDomain'] as core.String
            : null,
        windowsUserDomain: json_.containsKey('windowsUserDomain')
            ? json_['windowsUserDomain'] as core.String
            : null,
      );