Goal.fromJson constructor

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

Implementation

factory Goal.fromJson(Map<String, dynamic> json) {
  return Goal(
    event: json["event"],
    duration: json["duration"],
  );
}