DeviceSettings.fromJson constructor

DeviceSettings.fromJson(
  1. Map json_
)

Implementation

DeviceSettings.fromJson(core.Map json_)
    : this(
        adbEnabled: json_.containsKey('adbEnabled')
            ? json_['adbEnabled'] as core.bool
            : null,
        developmentSettingsEnabled:
            json_.containsKey('developmentSettingsEnabled')
                ? json_['developmentSettingsEnabled'] as core.bool
                : null,
        encryptionStatus: json_.containsKey('encryptionStatus')
            ? json_['encryptionStatus'] as core.String
            : null,
        isDeviceSecure: json_.containsKey('isDeviceSecure')
            ? json_['isDeviceSecure'] as core.bool
            : null,
        isEncrypted: json_.containsKey('isEncrypted')
            ? json_['isEncrypted'] as core.bool
            : null,
        unknownSourcesEnabled: json_.containsKey('unknownSourcesEnabled')
            ? json_['unknownSourcesEnabled'] as core.bool
            : null,
        verifyAppsEnabled: json_.containsKey('verifyAppsEnabled')
            ? json_['verifyAppsEnabled'] as core.bool
            : null,
      );