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