toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (authorName != null) 'authorName': authorName!,
      if (comments != null) 'comments': comments!,
      if (reviewId != null) 'reviewId': reviewId!,
    };