AccountSettings.fromJson constructor
AccountSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
AccountSettings.fromJson(Map<String, dynamic> json) {
// Set enabledXPC
enabledXPC = (json['enabledXPC'] ?? false) as bool;
// Set enabled1V1T
enabled1V1T = (json['enabled1V1T'] ?? false) as bool;
// Set eaiActivationEnabled
eaiActivationEnabled = (json['eaiActivationEnabled'] ?? false) as bool;
// Set eaiCollectEnabled
eaiCollectEnabled = (json['eaiCollectEnabled'] ?? false) as bool;
// Set Troubleshooting
if (json.keys.contains('troubleshooting')) {
troubleshooting = Troubleshooting.fromJson(json['troubleshooting'] ?? {});
}
}