ReviewRateModel.fromJson constructor Null safety

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

Implementation

factory ReviewRateModel.fromJson(Map<String, dynamic> json) =>
    ReviewRateModel(
      length: json["length"],
      reviewsAvgRate: json["reviewsAvgRate"],
      items: json["items"] == null
          ? null
          : List<int>.from(json["items"].map((x) => x)),
    );