ReviewModel.fromJson constructor

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

Implementation

factory ReviewModel.fromJson(Map<String, dynamic> json) => ReviewModel(
  id: json['id'],
  customerId: json['customerId'],
  productId: json['productId'],
  organization: OrganizationModel.fromJson(json['organization']),
  customer: UserModel.fromJson(json['customer']),
  rating: json['rating'],
  comment: json['comment'],
  createdAt: json['createdAt'],
);