fromJson static method
Creates a new speed threshold alert from a JSON object
Implementation
static SpeedThresholdAlert fromJson(Map<String, dynamic> json) {
return SpeedThresholdAlert(
threshold: json['threshold'] as double,
unitSpeed: UnitSpeed.fromString(json['unitSpeed'] as String),
metric: WorkoutAlertMetric.fromString(json['metric'] as String),
);
}