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