SettingsModel.fromJson constructor
Implementation
factory SettingsModel.fromJson(Map<String, dynamic> json) {
return SettingsModel(
watchList: List<String>.from(json['watchList']),
rsiPeriod: json['rsiPeriod'],
rsiSellThreshold: json['rsiSellThreshold'],
rsiBuyThreshold: json['rsiBuyThreshold'],
rotationPeriod: json['rotationPeriod'],
isDarkMode: json['isDarkMode'] ?? false,
);
}