ThresholdConfig.fromJson constructor

ThresholdConfig.fromJson(
  1. 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),
    },
  );
}