Threshold.fromJson constructor

Threshold.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Threshold.fromJson(Map<String, dynamic> json) {
  return Threshold(
    comparison: (json['Comparison'] as String?)?.toComparison(),
    thresholdValue: json['ThresholdValue'] as double?,
  );
}