toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (averageRating != null) 'averageRating': averageRating!,
      if (ratingCount != null) 'ratingCount': ratingCount!,
      if (ratingHistogram != null) 'ratingHistogram': ratingHistogram!,
    };