LowBatteryConfig.fromMap constructor
Creates from a map.
Implementation
factory LowBatteryConfig.fromMap(Map<String, dynamic> map) {
return LowBatteryConfig(
threshold: (map['threshold'] as num?)?.toDouble() ?? 0.15,
throttleInterval: Duration(
milliseconds: (map['throttleInterval'] as num?)?.toInt() ?? 300000,
),
disableAutoSync: map['disableAutoSync'] as bool? ?? false,
);
}