Rating.fromJson constructor

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

Implementation

factory Rating.fromJson(Map<String, dynamic> json) => Rating(
      id: json["id"],
      rating: json["rating"],
      review: json["review"],
      eventId: json["event_id"],
      user: json["user"] == null ? null : User.fromJson(json["user"]),
    );