fromJson static method

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

Creates a new workout alert from a JSON object

Implementation

static WorkoutAlert fromJson(Map<String, dynamic> json) {
  return WorkoutAlert(
    type: WorkoutAlertType.fromString(json['type'] as String),
  );
}