ReviewModel.fromMap constructor

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

Implementation

factory ReviewModel.fromMap(Map<String, dynamic> json) => ReviewModel(
      id: json["id"],
      rate: json["rate"],
      customComment: json["custom_comment"],
      orderId: json["order_id"],
      clientId: json["client_id"],
      vendorId: json["vendor_id"],
      createdAt: json["created_at"] == null
          ? null
          : DateTime.parse(json["created_at"]),
    );