toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'customerId': customerId,
  'productId': productId,
  'organization': organization.toJson(),
  'customer': customer.toJson(),
  'rating': rating,
  'comment': comment,
  'createdAt': createdAt,
};