PredictedItem.fromJson constructor

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

Implementation

factory PredictedItem.fromJson(Map<String, dynamic> json) {
  return PredictedItem(
    itemId: json['itemId'] as String?,
    score: json['score'] as double?,
  );
}