toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customRating != null) 'customRating': customRating!,
      if (rating != null) 'rating': rating!,
      if (ratingReason != null) 'ratingReason': ratingReason!,
    };