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