ThresholdConfig.fromJson constructor
ThresholdConfig.fromJson(
- Object? j
Implementation
factory ThresholdConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ThresholdConfig(
value: switch (json['value']) {
null => null,
Object $1 => decodeDouble($1),
},
);
}