Thresholds.fromJson constructor

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

Implementation

factory Thresholds.fromJson(Map<String, dynamic> json) => Thresholds(
    convertInt(json['low_threshold'])!,
    convertInt(json['med_threshold'])!,
    convertInt(json['high_threshold'])!);